I want to use Mauch HS-100 Hall current sensor with Cube Orange Autopilot in solar powered drone.
Can mission planner usedmah value increments and decrements during flight based on battery charging and discharging?
Yes, I have same doubt, trying to contact Mauch for clarification. But, if the sensor works bidirectional, then is the logic written to increment and decrement usedmAH dynamically based on current direction?
It looks like this function:
AP_BattMonitor_Backend::calculate_mah(float amps, float dt_us) { return (float) (amps * dt_us * AUS_TO_MAH);
will work correctly for negative current.
But if the Mauch has an analog output, it will need to be sending a voltage > 0 for zero current, i.e. a positive offset sufficient to allow the desired negative current range.