mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Fixed unnecessarily long startup time due to gyro detection.
This commit is contained in:
parent
00f2e2a772
commit
489156602f
5 changed files with 51 additions and 18 deletions
|
@ -52,6 +52,7 @@ extern "C" {
|
|||
#include "rx/rx.h"
|
||||
#include "scheduler/scheduler.h"
|
||||
#include "sensors/battery.h"
|
||||
#include "sensors/gyro.h"
|
||||
|
||||
void cliSet(const char *cmdName, char *cmdline);
|
||||
int cliGetSettingIndex(char *name, uint8_t length);
|
||||
|
@ -85,6 +86,7 @@ extern "C" {
|
|||
PG_REGISTER_ARRAY(rxChannelRangeConfig_t, NON_AUX_CHANNEL_COUNT, rxChannelRangeConfigs, PG_RX_CHANNEL_RANGE_CONFIG, 0);
|
||||
PG_REGISTER_ARRAY(rxFailsafeChannelConfig_t, MAX_SUPPORTED_RC_CHANNEL_COUNT, rxFailsafeChannelConfigs, PG_RX_FAILSAFE_CHANNEL_CONFIG, 0);
|
||||
PG_REGISTER(pidConfig_t, pidConfig, PG_PID_CONFIG, 0);
|
||||
PG_REGISTER(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 0);
|
||||
|
||||
PG_REGISTER_WITH_RESET_FN(int8_t, unitTestData, PG_RESERVED_FOR_TESTING_1, 0);
|
||||
}
|
||||
|
|
|
@ -162,4 +162,5 @@ timeDelta_t getGyroUpdateRate(void) {return gyro.targetLooptime;}
|
|||
void sensorsSet(uint32_t) {}
|
||||
void schedulerResetTaskStatistics(taskId_e) {}
|
||||
int getArmingDisableFlags(void) {return 0;}
|
||||
void writeEEPROM(void) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue