Compensation for temperature variations of servo