mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Set acc alignment to that of active gyro
This commit is contained in:
parent
fc289e95b7
commit
5b40bb4b24
4 changed files with 9 additions and 16 deletions
|
@ -453,9 +453,6 @@ static bool gyroInitSensor(gyroSensor_t *gyroSensor, const gyroDeviceConfig_t *c
|
|||
gyroSensor->gyroDev.hardware_lpf = gyroConfig()->gyro_hardware_lpf;
|
||||
gyroSensor->gyroDev.hardware_32khz_lpf = gyroConfig()->gyro_32khz_hardware_lpf;
|
||||
gyroSensor->gyroDev.initFn(&gyroSensor->gyroDev);
|
||||
if (gyroConfig()->gyro_align != ALIGN_DEFAULT) {
|
||||
gyroSensor->gyroDev.gyroAlign = gyroConfig()->gyro_align;
|
||||
}
|
||||
|
||||
// As new gyros are supported, be sure to add them below based on whether they are subject to the overflow/inversion bug
|
||||
// Any gyro not explicitly defined will default to not having built-in overflow protection as a safe alternative.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue