Request: Provide mAh display and handling for battery consumption
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
One way it could be implemented is to multiply the battery_discharge per the parameter battery capacity.
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
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
[X] That would be perfect! i have the same problem.
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
this is now done. not sure on it accuracy however
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.
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?
@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.