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:
parent
0d054af27f
commit
62e0e59ab5
7 changed files with 131 additions and 137 deletions
|
@ -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(
|
||||
¤tProfile->gpsProfile,
|
||||
&masterConfig.gpsProfile,
|
||||
¤tProfile->pidProfile
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue