Rover: correct get_distance_to_destination in loiter mode

This commit is contained in:
Peter Barker 2019-06-05 14:05:41 +10:00 committed by Randy Mackay
parent 4c88a1e9de
commit c61412d2d1
1 changed files with 1 additions and 2 deletions

View File

@ -121,8 +121,7 @@ float ModeGuided::get_distance_to_destination() const
case Guided_TurnRateAndSpeed: case Guided_TurnRateAndSpeed:
return 0.0f; return 0.0f;
case Guided_Loiter: case Guided_Loiter:
rover.mode_loiter.get_distance_to_destination(); return rover.mode_loiter.get_distance_to_destination();
break;
} }
// we should never reach here but just in case, return 0 // we should never reach here but just in case, return 0