Skip to content

Avoid duplicate temperature compensation in EAHRS #30863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 3 times, most recently from d8f13b4 to 34370d4 Compare August 11, 2025 17:54
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