mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 04:03:34 +08:00
Add RC termination switch
This commit is contained in:
@@ -237,6 +237,11 @@ void ManualControl::processSwitches(hrt_abstime &now)
|
||||
}
|
||||
}
|
||||
|
||||
if (switches.termination_switch != _previous_switches.termination_switch
|
||||
&& switches.termination_switch == manual_control_switches_s::SWITCH_POS_ON) {
|
||||
sendActionRequest(action_request_s::ACTION_TERMINATE, action_request_s::SOURCE_RC_SWITCH);
|
||||
}
|
||||
|
||||
if (switches.gear_switch != _previous_switches.gear_switch
|
||||
&& _previous_switches.gear_switch != manual_control_switches_s::SWITCH_POS_NONE) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user