EgorBelikov / arducam-osd

Automatically exported from code.google.com/p/arducam-osd
0 stars 0 forks source link

Battery percent #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1.When you start the APM the Battery percent will shows 99%, although when  the 
battery Voltage is not near to 12.6V==100%

2.I found the problem at the APM Code GCS_Mavlink.pde at line 196 :
" battery_remaining = (100.0 * (g.pack_capacity - current_total1) / 
g.pack_capacity);"
This means no matter how full the battery is it will start every time with 99%

3.So my idea is to show the consumed mAh and the percent does not depend on 
consumed mAh but of the voltagelevel (I know its difficult because a lipo 
battery has no linearly discharge curve)

I hope you understand my problem and i am sorry for my english

regards from germany

Original issue reported on code.google.com by dabo...@googlemail.com on 8 Feb 2013 at 11:40