Rover: fix auto enter check

This commit is contained in:
Randy Mackay 2018-12-03 20:56:39 +09:00
parent f0036c59d7
commit b1a5636d4d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }