action_request: rename ACTION_TERMINATE to ACTION_TERMINATION for clarity

This commit is contained in:
Matthias Grob
2025-07-25 17:26:54 +02:00
committed by Alex Klimaj
parent 9d75bdbe62
commit 200be07021
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ uint8 ACTION_KILL = 4 # Kill vehicle (instantly stop the motors)
uint8 ACTION_SWITCH_MODE = 5 # Switch mode. The target mode is set in the `mode` field.
uint8 ACTION_VTOL_TRANSITION_TO_MULTICOPTER = 6 # Transition to hover flight
uint8 ACTION_VTOL_TRANSITION_TO_FIXEDWING = 7 # Transition to fast forward flight
uint8 ACTION_TERMINATE = 8 # Flight termination (irreversible)
uint8 ACTION_TERMINATION = 8 # Irreversably output failsafe values on all outputs, trigger parachute
uint8 source # [@enum SOURCE] Request trigger type, such as a switch, button or gesture
uint8 SOURCE_STICK_GESTURE = 0 # Triggered by holding the sticks in a certain position
+1 -1
View File
@@ -1692,7 +1692,7 @@ void Commander::executeActionRequest(const action_request_s &action_request)
break;
case action_request_s::ACTION_TERMINATE:
case action_request_s::ACTION_TERMINATION:
_user_mode_intention.change(vehicle_status_s::NAVIGATION_STATE_TERMINATION);
break;
+1 -1
View File
@@ -239,7 +239,7 @@ 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);
sendActionRequest(action_request_s::ACTION_TERMINATION, action_request_s::SOURCE_RC_SWITCH);
}
if (switches.gear_switch != _previous_switches.gear_switch