PX4-Autopilot
PX4-Autopilot copied to clipboard
[Bug] INA228 shunt resistor can't be setup per instance
During building my setup, I want to use 2 INA228 sensors connected to Holybro 6X power connectors:
- one for high current detection (by Matek) for main battery
- second connected to offboard computer with its own battery (PM02D module)
Both sensors are working great, but they have different shunt resistors: Matek = 200uR, PM02D = 500uR.
I can change parameter INA228_SHUNT but what I see in the code, it will be applied to both sensors (and any other connected to the system).
What would be the best approach to fix this?
Anyone?