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

Added gyro, compass, acc, and baro config macros

This commit is contained in:
Martin Budden 2016-11-30 21:38:14 +00:00
parent a9280d732a
commit 3ec46f1bd2
9 changed files with 96 additions and 90 deletions

View file

@ -424,7 +424,7 @@ void init(void)
#endif
if (!sensorsAutodetect(&masterConfig.sensorAlignmentConfig,
&masterConfig.sensorSelectionConfig,
masterConfig.compassConfig.mag_declination,
compassConfig()->mag_declination,
&masterConfig.gyroConfig,
sonarConfig)) {
// if gyro was not detected due to whatever reason, we give up now.