mirror of https://github.com/ArduPilot/ardupilot
Rover: fix auto enter check
This commit is contained in:
parent
f0036c59d7
commit
b1a5636d4d
|
@ -10,7 +10,7 @@ ModeAuto::ModeAuto(ModeRTL& mode_rtl) :
|
||||||
bool ModeAuto::_enter()
|
bool ModeAuto::_enter()
|
||||||
{
|
{
|
||||||
// fail to enter auto if no mission commands
|
// fail to enter auto if no mission commands
|
||||||
if (mission.num_commands() == 0) {
|
if (mission.num_commands() <= 1) {
|
||||||
gcs().send_text(MAV_SEVERITY_NOTICE, "No Mission. Can't set AUTO.");
|
gcs().send_text(MAV_SEVERITY_NOTICE, "No Mission. Can't set AUTO.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue