mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
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:
parent
4fe937b985
commit
88b2f62e2f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user