Keep better track of your range! Convert mAh to mWh

Published by Mr. D on

I know a lot of people use mAh and mAh/distance for their battery usage and efficiency in INAV. But, there is a better way. It’s really simple too; instead of Amps, use Watts. What is the benefit of Watts? Well, for a start. The numbers you get are much more comparable, as the voltage is taken into consideration. With mAh. The values are only comparable with aircraft using the same voltage that you are. Also, when using Watts. There are more OSD options available to you. Which give estimates of remaining flight time and distance. These options also take wind into consideration so are pretty accurate.

Setting up the battery profile

So you’ve decided that you want to use Watts instead of Amps. Good for you. Welcome to the rebellion. There are a couple of things that we need to do. The first is to set up the battery on the Configuration page. Currently, you will have some parameters for the minimum and maximum cell voltage. Maybe you’ve added the pack capacity in mAh. But you’ve probably not done much more than this. So lets go ahead and set this up.

To make things simple. Here is a little tool to get the right numbers for your setup. Ideally, the battery pack will have the Wh or mWh on the label. But most of the time this is not the case. So, just complete this form



mAh
LiPo | LiHV | LiIon

  • Battery Capacity Unit: mWh
  • Capacity: mWh
  • Maximum cell voltage, for cell count detection: V
  • Maximum cell voltage: V
  • Minimum cell voltage: V
  • Warning cell voltage: V

Now we have the information we need. We can fill in the battery settings on the Configuration page of INAV Configurator. This is a pretty simple copy and paste exercise. However, make sure that if you use multiple battery profiles, that you’re in the correct profile. You could also use the CLI below. Again, checking you’re using the correct battery profile. 30% warning and 20% critical capacities are a reasonable number. But please change these as you wish.

Copy CLI to clipboard

Adding our flight characteristics to get more useful OSD elements

This will now mean that INAV is using Watts for the battery capacity calculations. So right now, we have a more comparable unit. But if we really want to take full advantage of this. We need to make a few changes. Unfortunately, this doesn’t come from a simple calculator. We need to actually get out and fly to work this stuff out. But, lets head to the Advanced Tuning page and familiarise ourselves with the settings.

Here we have the section in Advanced Tuning, that we’re interested in. There are only 4 settings, and 2 of them we can sort out now.

Lets start with the easiest. Because it is purely how much we trust the system. The setting is RTH energy margin. This is approximately how much energy you would like left in the battery after the system has determined you need to RTH. If you’re just starting with this. Please feel free to set this to 20 or 30%. Just so that you can test the system, and feel comfortable that you will make it home.

The next setting to look at is Idle power. Again, we can do this now. But, if you have not already calibrated your voltage and current sensors. Do that first! The Idle power setting is how much energy is being used when the motor is not running. To see this. Head over to the Setup page. On the right is an Info box. Conveniently, Power draw is one of the pieces of information shown.

What you need to do is plug in the battery, and turn on everything that you normally use in flight. So have your VTX on at the power setting you normally use; if you fly with LEDs on all the time, turn them on, etc. Once everything is on, but the motor is not. Read the number for the Power draw. Lets say this is 1.37 W. To enter it in the Advanced Tuning page, we need to multiply it by 100. This gives us the cW (centiwatts) that is requested. So in this case, our 1.37 W is 137 cW.

The final two settings involve us having to actually fly the aircraft. Before proceeding. Make sure you have speed (ground or air, not 3D) and Power on your OSD. We will need those elements to get our final two settings.

The first thing we need to do is work out our cruise speed. In INAV, we set a Cruise Throttle, which maintains the same amount of effort, to effectively fly at the same approximate airspeed. This is how fast we will fly back in RTH. However you want to set your Cruise Throttle. Get that done. I’d recommend using Carson speed. But set it how you want.

Next, you need to measure the Cruise speed. To do this, fly in cruise, with no increased throttle. If you don’t have an airspeed sensor. Fly into wind, then fly with the wind, and take the average of the two speeds. Lets say our cruise speed is 45km/h. If you’re using the default configurator units. The Cruise speed setting will require you to convert the speed to cm/s. There are plenty of conversion calculators about that can be found on Google. But for quick reference:

  • cm/s = km/h × 27.77777778
  • cm/s = mph × 44.704
  • cm/s = knots × 51.444444444444

While we’re checking out the OSD. Remember we added the Power element. Check that out while in cruise. We need to note down how many Watts are being used while cruising. Again, we multiply this by 100 to get the cW.

Now we have our final two settings. Add them in the Advanced Tuning page and Save and Reboot. What will work for us now are the Remaining flight time and Remaining flight distance OSD elements. These only work when flying from a full battery. But, they will give you an estimate of the amount of time and distance you have. This is a really useful too while flying. So make sure to check them out.

Seeing the right stats

One last thing that you will want to set is

set osd_stats_energy_unit = WH 

in the CLI. Because who wants to be stuck using the old mAh method. When we have our much better mWh data.

This article has helped 978 people. For more useful things, please check out my YouTube Channel.

Share:
Categories: Useful Tools