Esc test code. period 20 ms , neutral 1.5ms, reverse 1.4ms , forward 1.6ms working verified with scope on a STM32F411RE
Dependencies: mbed
Home
http://developer.mbed.org/handbook/PwmOut
void period_ms (int ms) Set the PWM period, specified in milli-seconds (int), keeping the duty cycle the same. void period_us (int us) Set the PWM period, specified in micro-seconds (int), keeping the duty cycle the same.
Due to period_ms (int ms) being a int the comma values(floats) dit not work and delivered incorrect results. Changed to us, and value *1000 fixed the problem.
eg 1.5ms -> period_us(1500) ;)
Working verified with oscilloscope.