mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:03:33 +08:00
commander: handle RC loss timeout if manual_control_setpoint stops publishing (#19680)
Co-authored-by: Matthias Grob <maetugr@gmail.com>
This commit is contained in:
co-authored by
Matthias Grob
parent
2bdeb36ea3
commit
c40631c136
@@ -53,6 +53,7 @@ void ManualControlSelector::updateWithNewInputSample(uint64_t now, const manual_
|
||||
if (isInputValid(input, now) && (update_existing_input || start_using_new_input)) {
|
||||
_setpoint = input;
|
||||
_setpoint.valid = true;
|
||||
_setpoint.timestamp = now; // timestamp_sample is preserved
|
||||
_instance = instance;
|
||||
|
||||
if (_first_valid_source == manual_control_setpoint_s::SOURCE_UNKNOWN) {
|
||||
|
||||
Reference in New Issue
Block a user