mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
RC_Channel: remove UINT16_MAX check, moved to mavlink handler
This commit is contained in:
parent
4c641c6e2b
commit
fc710d8a81
@ -332,12 +332,7 @@ void RC_Channel::set_override(const uint16_t v, const uint32_t timestamp_us)
|
||||
if (!rc().gcs_overrides_enabled()) {
|
||||
return;
|
||||
}
|
||||
// this UINT16_MAX stuff should really, really be in the
|
||||
// mavlink packet handling code. It can be moved once that
|
||||
// code is in the GCS_MAVLink class!
|
||||
if (v == UINT16_MAX) {
|
||||
return;
|
||||
}
|
||||
|
||||
last_override_time = timestamp_us != 0 ? timestamp_us : AP_HAL::millis();
|
||||
override_value = v;
|
||||
rc().new_override_received();
|
||||
|
Loading…
Reference in New Issue
Block a user