mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Decouple sensor alignment from all acc/gyro/mag drivers.
This resulted in the removal of duplicate logic, duplicate code and the removal of a temporary buffer per-driver. The NAZE specific sensor alignment is now contained within the core code instead of in the drivers. The sensor alignment is determines by the sensor initialisation code. The alignment of sensor readings is now performed once and only by the appropriate sensor code, see usages of alignSensors(). The acc/gyro/compass driver code is now more reusable since it has no dependencies on the main code.
This commit is contained in:
parent
0f3e4add48
commit
297609d4c3
18 changed files with 124 additions and 185 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
extern uint16_t acc_1G;
|
||||
extern gyro_t gyro;
|
||||
extern sensor_align_e gyroAlign;
|
||||
|
||||
void GYRO_Common(void);
|
||||
void Gyro_getADC(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue