AP_HAL: require HALs implement rcin.protocol() to return RC protocol

This commit is contained in:
Peter Barker 2019-06-17 22:09:53 +10:00 committed by Peter Barker
parent 7bca6d5ec0
commit 92111eea61
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ public:
/* 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; }
/* Return string describing method RC input protocol */
virtual const char *protocol() const = 0;
/**
* Overrides: these are really grody and don't belong here but we need
* them at the moment to make the port work.