1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Removed gyroDev_t from gyro_t

This commit is contained in:
Martin Budden 2017-03-13 19:01:53 +00:00
parent b3ee1409e8
commit 5b66844cbb
9 changed files with 90 additions and 44 deletions

View file

@ -275,8 +275,8 @@ bool accInit(uint32_t targetLooptime)
memset(&acc, 0, sizeof(acc));
// copy over the common gyro mpu settings
acc.dev.bus = *gyroSensorBus();
acc.dev.mpuConfiguration = gyro.dev.mpuConfiguration;
acc.dev.mpuDetectionResult = gyro.dev.mpuDetectionResult;
acc.dev.mpuConfiguration = *gyroMpuConfiguration();
acc.dev.mpuDetectionResult = *gyroMpuDetectionResult();
if (!accDetect(&acc.dev, accelerometerConfig()->acc_hardware)) {
return false;
}