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

Configurable Baro Type

We can disable/configure mag, acc, but why not baro?

ident
This commit is contained in:
borisbstyle 2015-08-16 23:03:46 +02:00 committed by Dominic Clifton
parent 6a24295525
commit 26f89b74bd
7 changed files with 12 additions and 8 deletions

View file

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