Constant torque gravity compensation