mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 16:00:15 +08:00
manual_control: handle invalid rc_in_mode
This commit is contained in:
committed by
Matthias Grob
parent
50cca204d8
commit
6027398459
@@ -72,8 +72,6 @@ void ManualControlSelector::update_manual_control_input(uint64_t now, const manu
|
||||
_instance = instance;
|
||||
}
|
||||
|
||||
} else if (_rc_in_mode == 2) {
|
||||
// FIXME: what to do in the legacy case?
|
||||
} else if (_rc_in_mode == 3) {
|
||||
|
||||
// We only stick to the first discovered mavlink channel.
|
||||
@@ -84,7 +82,8 @@ void ManualControlSelector::update_manual_control_input(uint64_t now, const manu
|
||||
}
|
||||
|
||||
} else {
|
||||
// FIXME: param value unknown, what to do?
|
||||
_setpoint.valid = false;
|
||||
_instance = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user