AP_HAL: added RSSI interface for RCInput

This commit is contained in:
Andrew Tridgell 2017-06-20 13:12:18 +10:00
parent 64f722876f
commit 94b5a9c6f0

View File

@ -32,6 +32,9 @@ public:
/* Read an array of channels, return the valid count */
virtual uint8_t read(uint16_t* periods, uint8_t len) = 0;
/* get receiver based RSSI if available. -1 for unknown, 0 for no link, 255 for maximum link */
virtual int16_t get_rssi(void) { return -1; }
/**
* Overrides: these are really grody and don't belong here but we need
* them at the moment to make the port work.