From 92111eea61b65013586d89e744e4f79a3c522ec8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 17 Jun 2019 22:09:53 +1000 Subject: [PATCH] AP_HAL: require HALs implement rcin.protocol() to return RC protocol --- libraries/AP_HAL/RCInput.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL/RCInput.h b/libraries/AP_HAL/RCInput.h index f6c40e5254..07554669b2 100644 --- a/libraries/AP_HAL/RCInput.h +++ b/libraries/AP_HAL/RCInput.h @@ -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.