Re-enabing autotune.

This commit is contained in:
Dominic Clifton 2014-08-26 21:51:52 +01:00
parent 972ceee1d4
commit f9b630a2c1
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,8 @@
#include <stdint.h>
#include <math.h>
#include <platform.h>
#include "build_config.h"
#include "common/axis.h"
@ -32,6 +34,7 @@
#include "sensors/gyro.h"
#include "io/rc_controls.h"
#include "flight/flight.h"
#include "flight/navigation.h"
#include "flight/autotune.h"
#include "io/gps.h"
@ -81,7 +84,7 @@ const angle_index_t rcAliasToAngleIndexMap[] = { AI_ROLL, AI_PITCH };
#ifdef AUTOTUNE
bool shouldAutotune(void)
{
return f.ARMED && f.AUTOTUNE_MODE;
return ARMING_FLAG(ARMED) && FLIGHT_MODE(AUTOTUNE_MODE);
}
#endif