From 9f10cd71951ea8b9a700934bffcaf4f55be58ca8 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Wed, 25 Apr 2018 15:43:24 -0700 Subject: [PATCH] AP_HAL_VRBrain: Remove set_overrides() method --- libraries/AP_HAL_VRBRAIN/RCInput.cpp | 9 --------- libraries/AP_HAL_VRBRAIN/RCInput.h | 1 - 2 files changed, 10 deletions(-) diff --git a/libraries/AP_HAL_VRBRAIN/RCInput.cpp b/libraries/AP_HAL_VRBRAIN/RCInput.cpp index e9c190ebe4..430035d213 100644 --- a/libraries/AP_HAL_VRBRAIN/RCInput.cpp +++ b/libraries/AP_HAL_VRBRAIN/RCInput.cpp @@ -86,15 +86,6 @@ uint8_t VRBRAINRCInput::read(uint16_t* periods, uint8_t len) return len; } -bool VRBRAINRCInput::set_overrides(int16_t *overrides, uint8_t len) -{ - bool res = false; - for (uint8_t i = 0; i < len; i++) { - res |= set_override(i, overrides[i]); - } - return res; -} - bool VRBRAINRCInput::set_override(uint8_t channel, int16_t override) { if (override < 0) { return false; /* -1: no change. */ diff --git a/libraries/AP_HAL_VRBRAIN/RCInput.h b/libraries/AP_HAL_VRBRAIN/RCInput.h index 4a1779116d..989c497ecd 100644 --- a/libraries/AP_HAL_VRBRAIN/RCInput.h +++ b/libraries/AP_HAL_VRBRAIN/RCInput.h @@ -23,7 +23,6 @@ public: } - bool set_overrides(int16_t *overrides, uint8_t len) override; bool set_override(uint8_t channel, int16_t override) override; void clear_overrides() override;