mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
fix(navigator): use "Return" instead of "RTL" in user-facing text (#28543)
This commit is contained in:
1 parent
bd7d86e141
commit
b38dcb1f6c
88 files changed
+259
-258
No files matched your search
@@ -1197,10 +1197,10 @@ Commander::handle_command(const vehicle_command_s &cmd)
|
||||
break;
|
||||
|
||||
case vehicle_command_s::VEHICLE_CMD_NAV_RETURN_TO_LAUNCH: {
|
||||
/* switch to RTL which ends the mission */
|
||||
/* switch to Return which ends the mission */
|
||||
if (_user_mode_intention.change(vehicle_status_s::NAVIGATION_STATE_AUTO_RTL, getSourceFromCommand(cmd))) {
|
||||
mavlink_log_info(&_mavlink_log_pub, "Returning to launch\t");
|
||||
events::send(events::ID("commander_rtl"), events::Log::Info, "Returning to launch");
|
||||
mavlink_log_info(&_mavlink_log_pub, "Switching to Return\t");
|
||||
events::send(events::ID("commander_rtl"), events::Log::Info, "Switching to Return");
|
||||
cmd_result = vehicle_command_ack_s::VEHICLE_CMD_RESULT_ACCEPTED;
|
||||
|
||||
} else {
|
||||
@@ -2236,7 +2236,7 @@ void Commander::checkForMissionUpdate()
|
||||
} else if (_vehicle_status.nav_state == vehicle_status_s::NAVIGATION_STATE_AUTO_MISSION) {
|
||||
// Transition to loiter when the mission is cleared and/or finished, and we are still in mission mode.
|
||||
|
||||
// However, only do so if there's no pending mode change, so there isn't already a pending change (like RTL).
|
||||
// However, only do so if there's no pending mode change, so there isn't already a pending change (like Return).
|
||||
if (_user_mode_intention.get() == vehicle_status_s::NAVIGATION_STATE_AUTO_MISSION) {
|
||||
_user_mode_intention.change(vehicle_status_s::NAVIGATION_STATE_AUTO_LOITER);
|
||||
}
|
||||
@@ -3182,7 +3182,7 @@ void Commander::manualControlLossModeSwitch()
|
||||
|
||||
// Force the switch to Hold as a regular mode change (no failsafe, no alarming notification).
|
||||
// force=true skips the mode availability check on purpose: if Hold cannot actually run (e.g. without a
|
||||
// valid position estimate), the failsafe mode-fallback escalates from there (Hold -> RTL -> Land/Descend/Terminate).
|
||||
// valid position estimate), the failsafe mode-fallback escalates from there (Hold -> Return -> Land/Descend/Terminate).
|
||||
_user_mode_intention.change(vehicle_status_s::NAVIGATION_STATE_AUTO_LOITER, ModeChangeSource::User, false, true);
|
||||
|
||||
mavlink_log_info(&_mavlink_log_pub, "Manual control lost: switching to Hold\t");
|
||||
|
||||
Reference in new issue
Block a user