Certain aspects relate to systems, methods, and techniques for correcting for uncommanded instrument roll. A method for adjusting a controller-feedback system in a medical instrument may comprise receiving data from a sensor at or near a distal end of the instrument, determining a tip frame of reference based on the data from the sensor, the tip frame of reference representing a current orientation of the distal end of the instrument, obtaining a desired frame of reference, determining an adjustment to a visual frame of reference or a control frame of reference based on the tip frame of reference and the desired frame of reference, and transforming the visual frame of reference or the control frame of reference.