Browse Source

AP_Mount_Servo: remove out of date comment

mission-4.1.18
Randy Mackay 9 years ago
parent
commit
ccd3725f63
  1. 2
      libraries/AP_Mount/AP_Mount_Servo.cpp

2
libraries/AP_Mount/AP_Mount_Servo.cpp

@ -180,8 +180,6 @@ int16_t AP_Mount_Servo::closest_limit(int16_t angle, int16_t angle_min, int16_t @@ -180,8 +180,6 @@ int16_t AP_Mount_Servo::closest_limit(int16_t angle, int16_t angle_min, int16_t
while (angle_min >= 1800) angle_min -= 3600;
while (angle_max < -1800) angle_max += 3600;
while (angle_max >= 1800) angle_max -= 3600;
// TODO call this function somehow, otherwise this will never work
//set_range(min, max);
// If the angle is outside servo limits, saturate the angle to the closest limit
// On a circle the closest angular position must be carefully calculated to account for wrap-around

Loading…
Cancel
Save