Copter: bugfix for starting in LOITER

Loiter's Roll-Pitch mode was not being set on start-up.
This commit is contained in:
Randy Mackay 2013-12-30 17:14:42 +09:00
parent 5c6503e2f1
commit e15527973a

View File

@ -1604,17 +1604,11 @@ bool set_roll_pitch_mode(uint8_t new_roll_pitch_mode)
case ROLL_PITCH_AUTO:
case ROLL_PITCH_STABLE_OF:
case ROLL_PITCH_DRIFT:
case ROLL_PITCH_LOITER:
case ROLL_PITCH_SPORT:
roll_pitch_initialised = true;
break;
case ROLL_PITCH_LOITER:
// require gps lock
if( ap.home_is_set ) {
roll_pitch_initialised = true;
}
break;
#if AUTOTUNE == ENABLED
case ROLL_PITCH_AUTOTUNE:
// only enter autotune mode from stabilized roll-pitch mode when armed and flying