mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
15 lines
528 B
C
15 lines
528 B
C
#pragma once
|
|
|
|
extern uint16_t acc_1G;
|
|
extern gyro_t gyro;
|
|
extern sensor_align_e gyroAlign;
|
|
|
|
typedef struct gyroConfig_s {
|
|
uint8_t gyroMovementCalibrationThreshold; // people keep forgetting that moving model while init results in wrong gyro offsets. and then they never reset gyro. so this is now on by default.
|
|
} gyroConfig_t;
|
|
|
|
void useGyroConfig(gyroConfig_t *gyroConfigToUse);
|
|
void gyroSetCalibrationCycles(uint16_t calibrationCyclesRequired);
|
|
void gyroGetADC(void);
|
|
bool isGyroCalibrationComplete(void);
|
|
|