1
0
Fork 0
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:
Dominic Clifton 2014-04-21 14:14:14 +01:00
parent 0f3e4add48
commit 297609d4c3
18 changed files with 124 additions and 185 deletions

View file

@ -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);