1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 07:15:18 +03:00

Additional configs moved from profile to master

This commit is contained in:
KiteAnton 2016-01-26 22:23:39 +01:00
parent 0d054af27f
commit 62e0e59ab5
7 changed files with 131 additions and 137 deletions

View file

@ -455,7 +455,7 @@ void init(void)
}
#endif
if (!sensorsAutodetect(&masterConfig.sensorAlignmentConfig,masterConfig.acc_hardware, masterConfig.mag_hardware, masterConfig.baro_hardware, currentProfile->mag_declination, masterConfig.gyro_lpf)) {
if (!sensorsAutodetect(&masterConfig.sensorAlignmentConfig,masterConfig.acc_hardware, masterConfig.mag_hardware, masterConfig.baro_hardware, masterConfig.mag_declination, masterConfig.gyro_lpf)) {
// if gyro was not detected due to whatever reason, we give up now.
failureMode(FAILURE_MISSING_ACC);
}
@ -499,7 +499,7 @@ void init(void)
&masterConfig.gpsConfig
);
navigationInit(
&currentProfile->gpsProfile,
&masterConfig.gpsProfile,
&currentProfile->pidProfile
);
}