Consumed battery mAh using esc telemetry

Hey there, I’m on arducopter 4.5.7, using hobbywing motors, connected via CAN to get back esc telemetry. I’m able to see each full telemetry data like motor rpm, voltage and current.
The battery monitor sensor param set to “9” (ESC).
In GCS it perfectly show total current, watts, voltage, but total consumed is missing.

Could someone please let me know if this bug/todo feature or something I missed in configuration?

1 Like

Is the BATT_MONITOR configured to be ESC ?

yep, BATT_MONITOR set to be ESC.

So in the log there is nothing showing for BAT>Cur Tot ?

I’ve investigated code a bit and seems that in AP_BattMonitor_ESC::read() it iterates each ESC and calling AP_ESC_Telem::get_consumption_mah method.
So if I correct it means that this data missing from motor telemetry stream and not computed locally in any way.

This is a log from an ESC battery monitor totaling 4 ESC telemetry streams data. But this is with a 4-in1 that has a current shunt for each ESC channel (which is unusual). I have assumed it was totaling the current in the Battery Monitor from each but to your point perhaps the ESC board is summing them and putting the sum on the telemetry stream.

Sorry I not clarified earlier - I use hobbywing x6 plus motors and cube orange plus.

That was clear. I don’t have experience with CAN ESC’s, was trying to draw an analogy from serial data that might not apply.

So that’s what hobbywing esc send in CAN telemetry:




And total current metric from logs (all zero):

Have you figured out how to get the current on mission planner HUD?

I have got the voltage on Bat 1 monitor by setting bat monitor to ESC.

I am using hobbywing x11 plus motor.

not completely, few changes in code needed in order to fix this, or you can try write own implementation of battery monitor using lua script.