Skip to content
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

Implemented temperature sensor support for INA228 / INA238 #23639

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

alexcekay
Copy link
Member

@alexcekay alexcekay commented Sep 3, 2024

Solved Problem

The INA228 and INA238 sensors have packaged temperature sensors. With this PR it is possible to use the temperature readings from these sensors. They are published in the field "temperature" of "BatteryStatus"

Solution

  • Extended the Battery abstraction to also include a temperature
  • Read out the temperature values from the sensors via I2C

Changelog Entry

For release notes:

Feature Added INA228 / INA238 temperature sensor support

Alternatives

When we want to use the temperature measurements of those sensors there is no alternative.

Test coverage

  • Was tested locally at the bench

@alexcekay alexcekay marked this pull request as ready for review September 4, 2024 07:35
@niklaut niklaut self-requested a review September 4, 2024 14:43
src/drivers/power_monitor/ina228/ina228.h Outdated Show resolved Hide resolved
src/drivers/power_monitor/ina228/ina228.h Outdated Show resolved Hide resolved
src/drivers/power_monitor/ina238/ina238.h Outdated Show resolved Hide resolved
msg/BatteryStatus.msg Show resolved Hide resolved
@alexcekay alexcekay requested a review from dagar September 5, 2024 16:29
@dagar dagar merged commit 3d36c85 into PX4:main Sep 6, 2024
50 of 51 checks passed
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.

3 participants