RC_Channel: bind receivers directly via AP_RCProtocol library

... rather than via RC_Channels and the HAL and *then* to the AP_RCProtocol library...
This commit is contained in:
Peter Barker 2024-11-08 14:08:43 +11:00 committed by Thomas Watson
parent 089c4933ba
commit 8c706f0388
2 changed files with 0 additions and 6 deletions

View File

@ -513,7 +513,6 @@ public:
static int16_t get_receiver_link_quality(void); // returns 0-100 % of last 100 packets received at receiver are valid static int16_t get_receiver_link_quality(void); // returns 0-100 % of last 100 packets received at receiver are valid
bool read_input(void); // returns true if new input has been read in bool read_input(void); // returns true if new input has been read in
static void clear_overrides(void); // clears any active overrides static void clear_overrides(void); // clears any active overrides
static bool receiver_bind(const int dsmMode); // puts the receiver in bind mode if present, returns true if success
static void set_override(const uint8_t chan, const int16_t value, const uint32_t timestamp_ms = 0); // set a channels override value static void set_override(const uint8_t chan, const int16_t value, const uint32_t timestamp_ms = 0); // set a channels override value
static bool has_active_overrides(void); // returns true if there are overrides applied that are valid static bool has_active_overrides(void); // returns true if there are overrides applied that are valid

View File

@ -149,11 +149,6 @@ bool RC_Channels::has_active_overrides()
return false; return false;
} }
bool RC_Channels::receiver_bind(const int dsmMode)
{
return hal.rcin->rc_bind(dsmMode);
}
// support for auxiliary switches: // support for auxiliary switches:
// read_aux_switches - checks aux switch positions and invokes configured actions // read_aux_switches - checks aux switch positions and invokes configured actions