Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: sm_servo.cpp
- 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;