mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 04:10:35 +08:00
commander: move manual_control and switches out
This moves the remaining handling of the manual control stuff out of commander. All communication between manual control now goes through vehicle commands, and the landing gear topic.
This commit is contained in:
committed by
Matthias Grob
parent
e49b596edc
commit
97d01f200e
@@ -215,6 +215,7 @@ void ManualControl::Run()
|
||||
}
|
||||
|
||||
if (switches.gear_switch != _previous_switches.gear_switch) {
|
||||
|
||||
if (switches.gear_switch == manual_control_switches_s::SWITCH_POS_ON) {
|
||||
publish_landing_gear(landing_gear_s::GEAR_UP);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user