mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Cobbled together some bits of code to read and format the gyro data from
the L3GD29 gyro. Some code borrowed again from AQ32PlusF3 and the existing MPU6050 driver.
This commit is contained in:
parent
5c9b16ccde
commit
7e79a245c2
4 changed files with 273 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "drivers/accgyro_mpu3050.h"
|
||||
#include "drivers/accgyro_mpu6050.h"
|
||||
#ifdef STM32F3DISCOVERY
|
||||
#include "drivers/accgyro_l3gd20.h"
|
||||
#include "drivers/accgyro_lsm303dlhc.h"
|
||||
#endif
|
||||
#endif
|
||||
|
@ -97,6 +98,8 @@ void sensorsAutodetect(sensorAlignmentConfig_t *sensorAlignmentConfig, uint16_t
|
|||
} else if (mpu3050Detect(&gyro, gyroLpf)) {
|
||||
gyroAlign = CW0_DEG;
|
||||
#ifdef STM32F3DISCOVERY
|
||||
} else if (l3gd20Detect(&gyro, gyroLpf)) {
|
||||
gyroAlign = ALIGN_DEFAULT;
|
||||
} else if (fakeGyroDetect(&gyro, gyroLpf)) {
|
||||
gyroAlign = ALIGN_DEFAULT;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue