Skip to content

Conversation

ohyaiamhere
Copy link
Contributor

As explained in issue #25792, there is an issue where EAHRS performs duplicate temperature compensation for certain sensors.

The enum TempCalibration of the type TempCal is adjusted to see if the sensors is of the MicroStrain7 type (as mentioned in the issue) and set the enum as IsTempCalibrated. Else the enum is set as IsNotTempCalibrated.

In the inertial sensor section, this enum, which was sent by the message ins_data_message_t, is checked, and if there is temperature compensation, a new bool IsTempCalibrated is set to true. This bool then checked at places where temperature compensation due to HAL_INS_TEMPERATURE_CAL_ENABLE occurs and the code inside is executed if the bool is false.

@ohyaiamhere ohyaiamhere changed the title Avoid duplicate temperature compensation in EHRS Avoid duplicate temperature compensation in EAHRS Aug 8, 2025
@ohyaiamhere ohyaiamhere force-pushed the temp_cal branch 4 times, most recently from 34370d4 to 67075aa Compare August 13, 2025 15:45
@ohyaiamhere ohyaiamhere force-pushed the temp_cal branch 4 times, most recently from 3f98453 to 9a97e14 Compare August 25, 2025 10:34
@ohyaiamhere ohyaiamhere force-pushed the temp_cal branch 3 times, most recently from e994bc3 to 9ff73df Compare September 1, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant