I have two different types of batteries a 10,000 and an 8000. I have a script set up to toggle between which capacity I’m using. I want to be able to load a new battery and have my battery indicator on my remote control start out at 100% when I’m near 25 V and I want to go to 20% when I’m down near my battery fell safe warning. What I have isn’t working and the multiplier I believe came from the mission planner calibration tool. The amp per volt I can’t remember where that number came from. For a long time I had 17 as the Provolt and then after some reading somehow mysteriously ended up at 83.33 which got me a bit more change from 100% down towards a smaller number whereas 17 would only change from 100% down to about 90%. Can anyone think of a way I can display on my remote control a range of 100% down to 20% which is my battery low volt.
Have you calibrated your battery current meter? If not, fully charge a battery. Fly for 5 minutes. Then recharge the battery. Note the amount of mAh returned to your battery by the charger. Check the flight log for the consumed or Logged mAh. Then math:
Repeat until it’s accurate enough for your liking. Unless it’s really off to start I find one or two runs is usually enough.
Once that’s set, your battery % should be accurate as it’s based on the current, not voltage.
Thanks for the info. Does this mean that every time you take off and land even on the same battery is going to start over with a fresh percentage? If you’re only using current, that seems like you would have to start out with a fresh battery for every flight to have an Accurate percentage remaining question.
Unfortunately that’s an issue. If you land and power down then the count is reset. However if you land, but don’t power down, the counter will continue on the next flight.
Just thinking out loud … might be a way to keep a persistent count across power cycles by creating a parameter in a lua script. But you’d need to also create a method of resetting the count when you installed a fresh battery. Or look at the thread for smart batteries.
With voltage being an unreliable indication of state of charge its the way it is.
This question has been posted countless times on the forum.
Yea, smart batteries.
You can easily make a lua script which would estimate the battery state of charge based on the voltage, current, number of cells. It may need some fine tuning to get correct values and it would be highly specific for the battery type you would be using. It would be something like a table with values (for instance for 3/6/9/12 A rows for each 10 % charge state (like 3.9, 3.8 3.7 V). You would interpolate voltage/current measured using the table, and then multiply by nominal cell capacity cells. That would be poor’s man smart battery. I had a similar thing running on a long range plane (non-ardupilot), and it had 5% accuracy.
You can display the result in the MESSAGE field, either as numeric, or even make some bar, or use integrated battery symbols for display.
I generally prefer to watch voltage (implicitly corrected for the current) as a means of tracking the battery.
Thanks for these suggestions. I’ll study each and sort out a script to give me some approximation. The more critical need is more when burning through battery’s back to back not so much multiple shorter flights.
There is a script for that in scripting examples or maybe applets in the repository.
