MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

Request: Provide mAh display and handling for battery consumption

Open mikkosaarisalo opened this issue 13 years ago • 9 comments

I am using several batteries and different capacities based on the payload and mission on the same plane and would love to have an option to monitor the battery consumption in mAh. Please consider adding a configurable option to handle and display all consumption figures in mAh in addition or instead of percentages.

cheers -mikko

mikkosaarisalo avatar Apr 17 '13 08:04 mikkosaarisalo

One way it could be implemented is to multiply the battery_discharge per the parameter battery capacity.

arthurbenemann avatar Apr 29 '13 20:04 arthurbenemann

Agree - it can be brought visible like that. However, I would prefer having the consumed mAh reported over the air and possible percentage calculations being done on the ground, if necessary. It seems that there is only percentage coming down from the air through MAVLink, if I am reading the right versions. (https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/common.xml). Maybe this is equally a request to MAVLink and to the on-the-air systems to report the straight mAh consumption.

cheers -mikko

mikkosaarisalo avatar Apr 30 '13 07:04 mikkosaarisalo

Yeah, only percentage,current and voltage come through message SYS_STATUS.

You are right the best way to do it is to transmit the mAh straight from APM. But that would require a change in MavLink protocol.

2013/4/30 MikkoSaarisalo [email protected]

Agree - it can be brought visible like that. However, I would prefer having the consumed mAh reported over the air and possible percentage calculations being done on the ground, if necessary. It seems that there is only percentage coming down from the air through MAVLink, if I am reading the right versions. ( https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/common.xml). Maybe this is equally a request to MAVLink and to the on-the-air systems to report the straight mAh consumption.

cheers -mikko

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/MissionPlanner/issues/28#issuecomment-17213592 .

Arthur Benemann

arthurbenemann avatar Apr 30 '13 12:04 arthurbenemann

[X] That would be perfect! i have the same problem.

Yups1337 avatar May 14 '13 12:05 Yups1337

I have submitted a pull req to Mavlink about that. Maybe worth also discussing this over there as well. https://github.com/mavlink/mavlink/pull/116

cheers -mikko

mikkosaarisalo avatar May 14 '13 20:05 mikkosaarisalo

this is now done. not sure on it accuracy however

meee1 avatar Aug 20 '13 09:08 meee1

Now the mavlink side change has been merged in. This enables to transmit the actual consumed calculation from air to the ground instead of the percentage.

mikkosaarisalo avatar Sep 22 '13 18:09 mikkosaarisalo

Thanks @MikkoSaarisalo .

This is the corresponding issue in DroidPlanner https://github.com/arthurbenemann/droidplanner/issues/41. Now we just need to implement it on ArduPilot, or is it already implemented there?

arthurbenemann avatar Sep 22 '13 18:09 arthurbenemann

@Arthur: This new message has not made it to ArduPilot yet. Fortunately we avoid compatibility issues with APM as this message has never been used before, otherwise, changing the size of a struct and not incrementing the MAVLink protocol version would have most GCSs having hard time dealing with this change.

billbonney avatar Sep 23 '13 01:09 billbonney