mirror of https://github.com/ArduPilot/ardupilot
Rover: added "SaveWP: Mission cleared!" message
This commit is contained in:
parent
291d709409
commit
ce1f0343c7
|
@ -139,6 +139,7 @@ bool RC_Channel_Rover::do_aux_function(const aux_func_t ch_option, const AuxSwit
|
|||
// if disarmed clear mission and set home to current location
|
||||
if (!rover.arming.is_armed()) {
|
||||
rover.mode_auto.mission.clear();
|
||||
gcs().send_text(MAV_SEVERITY_NOTICE, "SaveWP: Mission cleared!");
|
||||
if (!rover.set_home_to_current_location(false)) {
|
||||
// ignored
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue