Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AC3.6.10 copter quadricopter #12518
Testing the end off battery, I had throttle limit issue starting at log line 225000, instead motor was not at 100% (1920pwm max esc calibrated).
I Don't understand this behavior, can you explain to me?
You will find attached log of this flight.
thank you for your help.
Hello Randy I understand sorry.
But i think I find real issue.....
Please if you can test it SITL to confirm it, I think after you will able to make correction...
When you have current limiting value set it will limit the throttle to a point that will prevent the battery voltage being pulled below your minimum voltage set in the MOT parameters. Appart form prolonging the battery lifetime, it lets you maximise flight time by limiting the power draw when the battery is getting low and causing a battery failsafe.
Notice in the code that it does not pull the maximum throttle below the hover throttle. The lowest value it can pull maximum throttle is: Hover + (1-Hover)*0.2
Now the problem. This should never reduce the maximum throttle below the hover throttle. It should simply limit your maximum lean angle and ability to climb quickly. So it should never cause the aircraft to descend unless the parameters have been set badly. In particular if your hover throttle is set too low.
So we have good news and bad news.... And great news....
The good news is you have not set the parameters badly.
So the problem is we are not accounting for the increase in hover throttle caused by the battery voltage scaling correction. Because your maximum thrust has dropped by 20% at this point in the flight, when you get the reduction it goes lower than it should.