TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Revision:
15:0f89d1ff860d
Parent:
14:914467165f34
--- a/sm_servo.cpp	Fri Oct 04 23:31:08 2019 +0000
+++ b/sm_servo.cpp	Sat Oct 05 01:32:50 2019 +0000
@@ -55,7 +55,7 @@
 double pwmFromAngle(double angleDeg)
 {
     //on a une regression linéaire entre l'angle et la pwm on centre sur 0 puis on applique
-    pulsewidth = (d_CHASSIS_inversion*angleDeg * 11.0) + SERVO_PULSE_MIDDLE_US;
+    pulsewidth = (d_CHASSIS_inversion*angleDeg * 21.0) + SERVO_PULSE_MIDDLE_US;
     //rs_LOG_pc.printf("pulsewidth = %d =(%f * 11.0) + 1500\r\n",pulsewidth,angleDeg);
     if(pulsewidth > SERVO_PULSE_MAX_US) {
         pulsewidth =  SERVO_PULSE_MAX_US;