Methods and systems for controlling a surgical microscope. Moveable optics of the surgical microscope are controlled using two sets of control parameters, to reduce jitter and image instability. Shifts in the image due to changes in temperature or due to the use of optical filter can also be compensated. Misalignment between the mechanical axis and the optical axis of the surgical microscope can also be corrected.