Hi, I have my hexa, with a pixhawk 1 and copter 3.5.7 on a 4s 5000mAh battery. I have configured a 13.8V failsafe. I have a few flight of over 9 minutes after failsafe trigger and my hexa landing without a problem, always in POSHOLD flightmode. In the last flight I was testing some script in GUIDED mode and after 7.5 minutes or so I heard low battery tone and a couple of second later it fall to the ground and crash. Analizing the log file, it seems that failsafe was triggered with 12.8Volts 12 second later of reach 13.8Volts limits.
Could someone confirm my analisis and try to explain why?
Is 13.8V a too low value for a 4s battery?
The google drive link is not public so I don’t have permission. But anyway, I can tell you that based on your description:
13.8v is definitely a very low setting for a 4S 5000mah battery. That’s giving you very little time before it no longer has enough juice to maintain altitude or arrest a descent. I suggest 14.0v.
Note: It is also not a good practice to discharge these batteries below 85-90%. So cutting your failsafe short usually results in 90-100% (or more with a crash) battery utilization, which shortens their life dramatically.
The failsafe activates once the voltage has been below the setting for 10 seconds. So once you dropped below 13.8 volts, it waits 10 seconds, then activates the failsafe. This is why you didn’t see it activate immediate. You can adjust this with parameter BATT_LOW_TIMER (wiki)
If your battery went from 13.8 volts to 12.8 volts in 12 seconds, the battery is definitely shot. Assuming you’re not running an underpowered system that over utilizes the battery.
From the logs I’d agree with Matt, set:
And check your ESC settings and turn off any low voltage cutout, or at least make sure it’s a soft-cut or reduction in power.
If you’ve got a cheap battery charger, invest in a better one.
Also check that the voltage reading is accurate, mostly importantly at the lower end of the expected voltage scale like 12 or 14 volts. Dont calibrate it using a 16 volt source, use a known 12.0 or 14.0 source. This must be accurate.
In the logs the voltage does drop right away but it goes down at a fairly constant rate after that and only really drops off after 13.5 volts - this is why I’ve said to make sure the voltage measurement is accurate. I would have expected the voltage to drop a little faster if you’d exceeded the batteries capacity by so much.
Also set these:
If MOT_BAT_VOLT_MIN is a little lower than what the battery voltage can realistically be expected to drop down to (and the craft still flies) then it may not matter - I havent checked through the code though.