mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Copter: mission_start always restarts mission
This commit is contained in:
parent
1b5e6849d9
commit
004c5b8416
@ -1296,6 +1296,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
case MAV_CMD_MISSION_START:
|
||||
if (copter.motors.armed() && copter.set_mode(AUTO)) {
|
||||
copter.set_auto_armed(true);
|
||||
if (copter.mission.state() != AP_Mission::MISSION_RUNNING) {
|
||||
copter.mission.start_or_resume();
|
||||
}
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user