Rover: ensure fly_forward is set in AUTO

This commit is contained in:
Andrew Tridgell 2013-12-21 23:29:44 +11:00
parent a37a6d68f3
commit ac2f3da5ca
1 changed files with 2 additions and 0 deletions

View File

@ -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: