Rover: mode rtl loses duplicate calls to calc_lateral_acceleration

Also no need to call calc_nav_steer
no need to set throttle before entering hold
This commit is contained in:
Randy Mackay 2017-07-19 17:05:01 +09:00
parent 4fe937b985
commit 88b2f62e2f

View File

@ -23,10 +23,6 @@ void ModeRTL::update_navigation()
{
// no loitering around the wp with the rover, goes direct to the wp position
if (rover.verify_RTL()) {
g2.motors.set_throttle(g.throttle_min.get());
rover.set_mode(rover.mode_hold);
} else {
calc_lateral_acceleration();
calc_nav_steer();
}
}