mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-16 08:31:35 +10:00
Use upstream fusion library (#10724)
* Use upstream fusion library * Update Fusion dependency to new repository and version
This commit is contained in:
@@ -93,11 +93,11 @@ int32_t ICM20948Sensor::runOnce()
|
||||
|
||||
// If we're set to one of the inverted positions
|
||||
if (config.display.compass_orientation > meshtastic_Config_DisplayConfig_CompassOrientation_DEGREES_270) {
|
||||
ma = FusionAxesSwap(ma, FusionAxesAlignmentNXNYPZ);
|
||||
ga = FusionAxesSwap(ga, FusionAxesAlignmentNXNYPZ);
|
||||
ma = FusionRemap(ma, FusionRemapAlignmentNXNYPZ);
|
||||
ga = FusionRemap(ga, FusionRemapAlignmentNXNYPZ);
|
||||
}
|
||||
|
||||
float heading = FusionCompassCalculateHeading(FusionConventionNed, ga, ma);
|
||||
float heading = FusionCompass(ga, ma, FusionConventionNed);
|
||||
|
||||
heading = applyCompassOrientation(heading);
|
||||
if (screen)
|
||||
|
||||
Reference in New Issue
Block a user