-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Landing horizontal velocity compensation / unsteady landing #23546
Conversation
@Claudio-Chies looks clean but I need to look at it in more detail. Do you know which change caused this regression (assuming it is a regression)? |
@sfuhrer Not yet, i can have a look into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_target
is the _triplet_target
pre-processed by the flight task. The general rule is that we shouldn't use _triplet_target
in the code and only use _target
as this is used everywhere else otherwise there will be an inconsistency between the different parts of FlightTaskAuto.
If I understand correctly using _triplet_target
fixes the issue because it skips _updateInternalWaypoints
. Could you rather find why _updateInternalWaypoints
changes it and fix the problem there?
good point, didn't know that. so the issue seems that it goes into offtrack mode. |
de796db
to
fa39e34
Compare
fa39e34
to
a65aa38
Compare
a65aa38
to
1f50253
Compare
* initial working * implemented feedback
Solved Problem
There was a problem where triggering Land, while having a forward velocity, the landing algorithm didn't compensate it, meaning the vehicle remained drifting while getting closer to the ground , and in some cases jerking unsteadily
Solution
i set the target landing location based on the current velocity, maximum acceleration and jerk. this way the drone is able to compensate the velocity and land smoothly at the target location.
Changelog Entry
Test coverage
SITL and on Hardware