From 72a4846f40ad4efe66665d2a0cfa20c2ccce5db7 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Wed, 25 Apr 2018 15:42:08 -0700 Subject: [PATCH] AP_HAL_ChibiOS: Remove set_overrides() method --- libraries/AP_HAL_ChibiOS/RCInput.cpp | 13 ------------- libraries/AP_HAL_ChibiOS/RCInput.h | 1 - 2 files changed, 14 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/RCInput.cpp b/libraries/AP_HAL_ChibiOS/RCInput.cpp index fee2eafb72..3f118a27f7 100644 --- a/libraries/AP_HAL_ChibiOS/RCInput.cpp +++ b/libraries/AP_HAL_ChibiOS/RCInput.cpp @@ -126,19 +126,6 @@ uint8_t RCInput::read(uint16_t* periods, uint8_t len) return len; } -bool RCInput::set_overrides(int16_t *overrides, uint8_t len) -{ - if (!_init) { - return false; - } - - bool res = false; - 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 (!_init) { diff --git a/libraries/AP_HAL_ChibiOS/RCInput.h b/libraries/AP_HAL_ChibiOS/RCInput.h index 9d7771312b..79d79b88bf 100644 --- a/libraries/AP_HAL_ChibiOS/RCInput.h +++ b/libraries/AP_HAL_ChibiOS/RCInput.h @@ -51,7 +51,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;