mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Allow user provided sensor alignment to override NAZE defaults.
This should have been in 297609d4c3
.
This commit is contained in:
parent
c6a482b3e0
commit
3813c5027f
1 changed files with 11 additions and 0 deletions
|
@ -118,6 +118,17 @@ retry:
|
|||
}
|
||||
#endif
|
||||
|
||||
if (mcfg.gyro_align != ALIGN_DEFAULT) {
|
||||
gyroAlign = mcfg.gyro_align;
|
||||
}
|
||||
if (mcfg.acc_align != ALIGN_DEFAULT) {
|
||||
accAlign = mcfg.acc_align;
|
||||
}
|
||||
if (mcfg.mag_align != ALIGN_DEFAULT) {
|
||||
magAlign = mcfg.mag_align;
|
||||
}
|
||||
|
||||
|
||||
// Now time to init things, acc first
|
||||
if (sensors(SENSOR_ACC))
|
||||
acc.init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue