Bismarck / Mbed 2 deprecated ESC_TEST_CODE

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.

/media/uploads/tsillen/img_20150501_000139.jpg


All wikipages