PPM-reader icon indicating copy to clipboard operation
PPM-reader copied to clipboard

If PPM values greater than 2000, or less than 1000 are recieved, 0 is returned rather than 2000, or 1000

Open RollPitchYall opened this issue 6 months ago • 0 comments

Im reading ppm from a crossfire nano rx using a rp 2040 on pin 12. It works great! However, if signals shorter than 1000 or longer than 2000 are recieved, the board prints 0s to the serial from the example sketch. I can program around this in my code, but it would be beneficial if this was included in the library

proposed fix: signals between 1000 and 2000 behave as before if signals shorter than 950 are received: return 0, otherwise return 1000 if signals longer than 2050 are received, return 0, otherwise return 2000

that way if a ppm signal is received that is slightly out of spec, the library corrects for it instead of just returning 0

RollPitchYall avatar Jun 13 '25 21:06 RollPitchYall