mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Re-enabing autotune.
This commit is contained in:
parent
972ceee1d4
commit
f9b630a2c1
1 changed files with 4 additions and 1 deletions
|
@ -19,6 +19,8 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#include <platform.h>
|
||||||
|
|
||||||
#include "build_config.h"
|
#include "build_config.h"
|
||||||
|
|
||||||
#include "common/axis.h"
|
#include "common/axis.h"
|
||||||
|
@ -32,6 +34,7 @@
|
||||||
#include "sensors/gyro.h"
|
#include "sensors/gyro.h"
|
||||||
#include "io/rc_controls.h"
|
#include "io/rc_controls.h"
|
||||||
#include "flight/flight.h"
|
#include "flight/flight.h"
|
||||||
|
#include "flight/navigation.h"
|
||||||
#include "flight/autotune.h"
|
#include "flight/autotune.h"
|
||||||
#include "io/gps.h"
|
#include "io/gps.h"
|
||||||
|
|
||||||
|
@ -81,7 +84,7 @@ const angle_index_t rcAliasToAngleIndexMap[] = { AI_ROLL, AI_PITCH };
|
||||||
#ifdef AUTOTUNE
|
#ifdef AUTOTUNE
|
||||||
bool shouldAutotune(void)
|
bool shouldAutotune(void)
|
||||||
{
|
{
|
||||||
return f.ARMED && f.AUTOTUNE_MODE;
|
return ARMING_FLAG(ARMED) && FLIGHT_MODE(AUTOTUNE_MODE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue