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:
parent
f96f9672d1
commit
37fa25606f
2 changed files with 4 additions and 76 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue