Mission planner battery Used mah display using power monitor

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?

Can anyone answer?

Thanks
Prince

The first question is whether that current sensor is bidirectional: does it read negative current when the flow reverses?

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.

BTW, the wiki implies that all the Mauch sensors are unipolar: MAUCH Power Monitor — Copter documentation

It looks like this power module is designed for use with solar panels:
https://ardupilot.org/copter/docs/common-pomegranate-systems-pm.html

Thanks for your help. I will consider DroneCAN Power Module you suggested.