This value is quite off - but it’s a place to start.
As a guess, the voltage output for the current sensor is linear - or close to it. I’d appreciate comments if this guess is wrong.
To calibrate BATT_AMP_PERVLT I did a test flight with a fully charged battery, and compared the total current recorded in the log file for the flight with current required to recharge the battery.
I then adjusted BATT_AMP_PERVLT by the percentage difference. For example, if the current total was 20% lower than the current required to recharge the battery, I increased BATT_AMP_PERVLT by 20%.
I’ve not read anywhere that this is a valid technique. If it’s problematic, I’d really appreciate comments.
Search the forum for: New Amps/volt = old amps/volt x charger mah ÷ logged mah
Or some version of that and you will find plenty of posts describing that procedure.
Or just searching for “ratiometric” will do it.
I expect one additional reason it’s important to calibrate the current sensor is if you have COMPASS_MOTCT=2 then the current flow is used to calibrate the compass.
Correct, and you can even produce the compass/motor params offline with magfit, instead of trying to kill yourself running the copter at high throttle levels with the props on.