this code works properly when the loop is only do this task. But when I add another task, in this case is, to read the IMU sensor data via Serial port (p28, p27) using 'attach' interrupt function. The data sampling of IMU is <100Hz @115200bps. The PPM reading become improper, so many missing data. So a certain buffer[i] cannot be assign as a channel value of the RC. When I add a timer interrupt for calling a process function, the PPm reading data become terrible thing.
Is there anyone has the same problem, or anyone who knows to do this task in a better way?
Thank you,
/rhj
Dear All,
I want to read PPM signal from RC receiver (Futaba R617FS). The signal is as shown in the picture below:
I want to store each 5 channels into 5 variables.
I already try using the code from this link: http://mbed.org/forum/mbed/topic/466/?page=1#comment-2558. I try to read the width from the falling edge to raising edge. So I made a little change in here:
I would like to appreciate for you help, Thank you
Raharja