Tools: sitl_calibration: fix PWM values for angular velocity

This commit is contained in:
Gustavo Jose de Sousa 2016-09-28 16:11:14 -03:00 committed by Andrew Tridgell
parent 06c3102701
commit 226290158b
1 changed files with 1 additions and 1 deletions

View File

@ -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)