AP_HAL: added pulse_input_enable() API

this allows disabling pulse input at runtime to lower CPU load on
IOMCU when decoding via a UART
This commit is contained in:
Andrew Tridgell 2020-01-29 13:16:09 +11:00
parent ae9e8c3dbc
commit 3105c6a050
1 changed files with 4 additions and 0 deletions

View File

@ -49,4 +49,8 @@ public:
/* execute receiver bind */
virtual bool rc_bind(int dsmMode) { return false; }
/* enable or disable pulse input for RC input. This is used to
reduce load when we are decoding R/C via a UART */
virtual void pulse_input_enable(bool enable) { }
};