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:
Julian Oes
2021-05-11 19:09:41 +02:00
committed by Matthias Grob
parent e49b596edc
commit 97d01f200e
8 changed files with 64 additions and 410 deletions
@@ -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);