mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Fixed up gyro init.
This commit is contained in:
parent
4d238b27d5
commit
75237dd209
7 changed files with 30 additions and 37 deletions
|
@ -635,6 +635,7 @@ bool sensorsAutodetect(sensorAlignmentConfig_t *sensorAlignmentConfig, uint8_t a
|
|||
// this is safe because either mpu6050 or mpu3050 or lg3d20 sets it, and in case of fail, we never get here.
|
||||
gyro.targetLooptime = gyroSetSampleRate(gyroLpf, gyroSyncDenominator); // Set gyro sample rate before initialisation
|
||||
gyro.init(gyroLpf);
|
||||
gyroInit();
|
||||
|
||||
detectMag(magHardwareToUse);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue