-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArduPlane: initialize the accz integrator at takeoff #25718
ArduPlane: initialize the accz integrator at takeoff #25718
Conversation
Currently the integrator gets set to the lowest value at takeoff since throttle demand is near zero and hover throttle could be saved in the Q_M_THST_HOVER parameter. This allows the user to specify a desired initialization percentage/100. For small vehicles this is unlikely to be needed. For larger (heavier) quadplanes this should prevent prolonged time on the ground at a low power setting where the vehicle could be light on the landing gear and skip across the ground.
6469173
to
e27571d
Compare
My preference would be to copy copter rather than re-inventing the wheel. It has better takeoff handling that we do on plane. I think this is the key bit we need: ardupilot/ArduCopter/takeoff.cpp Lines 159 to 181 in 00a6563
|
Perfect, thanks. Will close this and open a new PR. |
Currently the integrator gets set to the lowest value at takeoff since throttle demand is near zero and hover throttle could be saved in the Q_M_THST_HOVER parameter. This allows the user to specify a desired initialization percentage/100.
For small vehicles this is unlikely to be needed. For larger (heavier) quadplanes this should prevent prolonged time on the ground at a low power setting where the vehicle could be light on the landing gear and skip across the ground.
Testing
Baseline
baseline.BIN.txt
Figure:
Feature Disabled
disabled.BIN.txt
Figure: Similar results to baseline.
Feature Enabled at zero
enabled.BIN.txt
Figure: