Browse Source

AP_HAL_SITL: Remove set_overrides() method

mission-4.1.18
Michael du Breuil 7 years ago committed by Francisco Ferreira
parent
commit
97696281ae
  1. 12
      libraries/AP_HAL_SITL/RCInput.cpp
  2. 1
      libraries/AP_HAL_SITL/RCInput.h

12
libraries/AP_HAL_SITL/RCInput.cpp

@ -43,18 +43,6 @@ uint8_t RCInput::read(uint16_t* periods, uint8_t len) @@ -43,18 +43,6 @@ uint8_t RCInput::read(uint16_t* periods, uint8_t len)
return len;
}
bool RCInput::set_overrides(int16_t *overrides, uint8_t len)
{
bool res = false;
if (len > SITL_RC_INPUT_CHANNELS) {
len = SITL_RC_INPUT_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) {

1
libraries/AP_HAL_SITL/RCInput.h

@ -18,7 +18,6 @@ public: @@ -18,7 +18,6 @@ public:
uint16_t read(uint8_t ch) override;
uint8_t read(uint16_t* periods, uint8_t len) override;
bool set_overrides(int16_t *overrides, uint8_t len) override;
bool set_override(uint8_t channel, int16_t override) override;
void clear_overrides() override;

Loading…
Cancel
Save