mirror of https://github.com/ArduPilot/ardupilot
Rover: correct get_distance_to_destination in loiter mode
This commit is contained in:
parent
4c88a1e9de
commit
c61412d2d1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue