Browse Source

Tools: sitl_calibration: fix PWM values for angular velocity

master
Gustavo Jose de Sousa 8 years ago committed by Andrew Tridgell
parent
commit
226290158b
  1. 2
      Tools/mavproxy_modules/sitl_calibration.py

2
Tools/mavproxy_modules/sitl_calibration.py

@ -89,7 +89,7 @@ class CalController(object): @@ -89,7 +89,7 @@ class CalController(object):
theta = 0
elif theta > max_theta:
theta = max_theta
theta_pwm = 1200 + round((theta / max_theta) * 800)
theta_pwm = 1300 + round((theta / max_theta) * 700)
self.mpstate.functions.process_stdin('servo set 5 %d' % theta_pwm)
self.mpstate.functions.process_stdin('servo set 6 %d' % x_pwm)

Loading…
Cancel
Save