mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
STM32F3DISCOVERY - Updating L3GD20 alignment defaults. (MJ666)
This commit is contained in:
parent
9eff8f1932
commit
e58f2948f3
3 changed files with 5 additions and 2 deletions
|
@ -173,8 +173,8 @@ bool detectGyro(uint16_t gyroLpf)
|
|||
|
||||
#ifdef USE_GYRO_L3GD20
|
||||
if (l3gd20Detect(&gyro, gyroLpf)) {
|
||||
#ifdef GYRO_GYRO_L3GD20_ALIGN
|
||||
gyroAlign = GYRO_GYRO_L3GD20_ALIGN;
|
||||
#ifdef GYRO_L3GD20_ALIGN
|
||||
gyroAlign = GYRO_L3GD20_ALIGN;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#define USE_GYRO_L3GD20
|
||||
#define USE_GYRO_MPU6050
|
||||
|
||||
#define GYRO_L3GD20_ALIGN CW90_DEG
|
||||
#define GYRO_MPU6050_ALIGN CW0_DEG
|
||||
|
||||
#define ACC
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#define GYRO
|
||||
#define USE_GYRO_L3GD20
|
||||
|
||||
#define GYRO_L3GD20_ALIGN CW90_DEG
|
||||
|
||||
#define ACC
|
||||
#define USE_ACC_LSM303DLHC
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue