mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Clean code for yaw spin recovery
This commit is contained in:
parent
a2c6264d55
commit
41fb37a264
6 changed files with 111 additions and 7 deletions
|
@ -101,6 +101,9 @@ typedef struct gyroConfig_s {
|
|||
gyroOverflowCheck_e checkOverflow;
|
||||
int16_t gyro_offset_yaw;
|
||||
|
||||
bool yaw_spin_recovery;
|
||||
int16_t yaw_spin_threshold;
|
||||
|
||||
} gyroConfig_t;
|
||||
|
||||
PG_DECLARE(gyroConfig_t, gyroConfig);
|
||||
|
@ -122,5 +125,6 @@ void gyroReadTemperature(void);
|
|||
int16_t gyroGetTemperature(void);
|
||||
int16_t gyroRateDps(int axis);
|
||||
bool gyroOverflowDetected(void);
|
||||
bool gyroYawSpinDetected(void);
|
||||
uint16_t gyroAbsRateDps(int axis);
|
||||
uint8_t gyroReadRegister(uint8_t reg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue