mirror of https://github.com/ArduPilot/ardupilot
Rover: ensure fly_forward is set in AUTO
This commit is contained in:
parent
a37a6d68f3
commit
ac2f3da5ca
|
@ -852,6 +852,7 @@ static void update_current_mode(void)
|
|||
case AUTO:
|
||||
case RTL:
|
||||
case GUIDED:
|
||||
set_reverse(false);
|
||||
calc_lateral_acceleration();
|
||||
calc_nav_steer();
|
||||
calc_throttle(g.speed_cruise);
|
||||
|
@ -906,6 +907,7 @@ static void update_current_mode(void)
|
|||
// hold position - stop motors and center steering
|
||||
channel_throttle->servo_out = 0;
|
||||
channel_steer->servo_out = 0;
|
||||
set_reverse(false);
|
||||
break;
|
||||
|
||||
case INITIALISING:
|
||||
|
|
Loading…
Reference in New Issue