Balduin
7c5cdf0ed7
fix(ina2xx): Reject exact zero readings
...
INA220 special case: only reject zero readings when output goes to
battery library, which if not updated just keeps the previous value.
When output goes to power_monitor uOrb message, publish zero readings as
well, as we do not have the option of publishing only a subset of
readings.
2026-04-09 14:30:21 +02:00
Niklas Hauser
6ec106a0ed
INA2xx: Debounce battery connection state ( #25786 )
...
To prevent critical low battery messages on a single I2C issue.
2025-10-31 13:19:10 +01:00
Julian Oes
117f198891
ina228/ina238: correctly set ADC range
...
It turns out that we set the ADC range incorrectly leading to the
measured current being capped at a certain level as the ADC on the
sensor saturates.
Instead, we need to set the range according to the formula given in the
interface datasheet.
2025-05-14 07:34:02 -07:00
Sebastian Domoszlai and Matthias Grob
b5f37c9fa6
Simplify Battery-related Enum Naming ( #24265 )
...
* Simplify battery-related enum naming
* Fix mistakenly removed string in enum names
* Fix missing renamings
* Update outdated file
* msg: Increase battery_status version since the enum naming was changed
* Revert message version increase
---------
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2025-02-28 11:42:40 -09:00
Alexander Lerach
3d36c8519d
drivers/power_monitor: Implement temperature sensor support for INA228 / INA238
2024-09-05 23:09:01 -04:00
Jacob Dahl
3e21efb721
ina228: fix sign error on CURRENT reading ( #19296 )
2022-03-08 19:47:11 -05:00
Matthias Grob
fdc40880d0
battery: separate out publishing from updating
...
to allow smart battery drivers to use the battery class and
filling in additional information in case it makes sense.
2021-12-07 21:06:51 +01:00
Matthias Grob
e70d70468a
battery: pass voltage and current by setter
2021-12-07 21:06:51 +01:00
Matthias Grob
39641494da
battery: pass connected flag in by setter
2021-12-07 21:06:51 +01:00
Matthias Grob
38d23f5345
battery: pass priority in by setter
2021-12-07 21:06:51 +01:00
Matthias Grob
f9fc9a9af6
battery: pass source in by constructor
2021-12-07 21:06:51 +01:00
Matthias Grob
b965923c08
battery: fetch throttle value inside of class
2021-12-07 21:06:51 +01:00
David Sidrane
f819be2075
Support INA228
2021-08-22 14:48:01 -04:00