From 299543bd35606a86434e36b790cb9c9dc8aa3a4a Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Wed, 25 Apr 2018 15:43:07 -0700 Subject: [PATCH] AP_HAL_QURT: Remove set_overrides() method --- libraries/AP_HAL_QURT/RCInput.cpp | 12 ------------ libraries/AP_HAL_QURT/RCInput.h | 1 - 2 files changed, 13 deletions(-) diff --git a/libraries/AP_HAL_QURT/RCInput.cpp b/libraries/AP_HAL_QURT/RCInput.cpp index 9ebcb64293..bcf7d8ac46 100644 --- a/libraries/AP_HAL_QURT/RCInput.cpp +++ b/libraries/AP_HAL_QURT/RCInput.cpp @@ -101,18 +101,6 @@ uint8_t RCInput::read(uint16_t* periods, uint8_t len) return (i+1); } -bool RCInput::set_overrides(int16_t *overrides, uint8_t len) -{ - bool res = false; - if(len > QURT_RC_INPUT_NUM_CHANNELS){ - len = QURT_RC_INPUT_NUM_CHANNELS; - } - for (uint8_t i = 0; i < len; i++) { - res |= set_override(i, overrides[i]); - } - return res; -} - bool RCInput::set_override(uint8_t channel, int16_t override) { if (override < 0) return false; /* -1: no change. */ diff --git a/libraries/AP_HAL_QURT/RCInput.h b/libraries/AP_HAL_QURT/RCInput.h index 49ed78fedb..7ebddd79e5 100644 --- a/libraries/AP_HAL_QURT/RCInput.h +++ b/libraries/AP_HAL_QURT/RCInput.h @@ -22,7 +22,6 @@ public: uint16_t read(uint8_t ch); uint8_t read(uint16_t* periods, uint8_t len); - bool set_overrides(int16_t *overrides, uint8_t len); bool set_override(uint8_t channel, int16_t override); void clear_overrides();