PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

[Bug] INA228 shunt resistor can't be setup per instance

Open diablo1281 opened this issue 7 months ago • 1 comments

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?

diablo1281 avatar May 27 '25 19:05 diablo1281

Anyone?

diablo1281 avatar Jun 08 '25 22:06 diablo1281