Rover: fix initial target when setting Guided

This commit is contained in:
Pierre Kancir 2018-08-22 10:42:59 +02:00 committed by Randy Mackay
parent 8b9b1fdb66
commit 3ef910ff11

View File

@ -7,9 +7,8 @@ bool ModeGuided::_enter()
set_desired_speed_to_default();
// set desired location to reasonable stopping point
Location stopping_point;
calc_stopping_location(_destination);
set_desired_location(stopping_point);
set_desired_location(_destination);
return true;
}