FastRCReader
FastRCReader copied to clipboard
Added some functionality!
Added changes
- Added the lastTimeIntus() function to the class FastRCReader to know when the last interrupt occurred (last time interrupt in microseconds). For example, an RC receiver stops emitting the PWM when the radio is disconnected, so a failsafe mode can be activated if more than X us passes without receiving an interruption.
- Added isRecvOn() and recvTimeout() functions to the class RCChannelMapper to know if the radio is on or off based on the last interrupt establishing a timeout when it received the previous interrupt. The default timeout value is 20000 us.