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

Simplify HMC5883 Compass (#5289)

Remove the mag gain calculation. After some tests the maximun difference
is 6 degrees, so is not important.
This commit is contained in:
Míguel Ángel Mulero Martínez 2018-03-03 23:43:24 +01:00 committed by Michael Keller
parent f96f9672d1
commit 37fa25606f
2 changed files with 4 additions and 76 deletions

View file

@ -58,7 +58,7 @@ mag_t mag; // mag access functions
#define COMPASS_INTERRUPT_TAG IO_TAG_NONE
#endif
PG_REGISTER_WITH_RESET_FN(compassConfig_t, compassConfig, PG_COMPASS_CONFIG, 0);
PG_REGISTER_WITH_RESET_FN(compassConfig_t, compassConfig, PG_COMPASS_CONFIG, 1);
void pgResetFn_compassConfig(compassConfig_t *compassConfig)
{