-
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
Terrain following fix #21885
Terrain following fix #21885
Conversation
Trivial whitespace thing is making astyle angry. https://github.com/PX4/PX4-Autopilot/actions/runs/5674219445/job/15377357389?pr=21885 |
Updated. Will check the output a little later to make sure It's all green lit |
Hey guys, any update on this PR? I can rebase it onto latest master if we want |
It wasn't exactly clear to me why this is the right fix, could we do it more explicitly so it's obvious? Are you interested in terrain hold or the full terrain following? Could it apply to only the current default manual position control mode or is it actually needed across all altitude and position control modes? Ping me on slack if you want to discuss directly. |
Is this still work in progress or can we close it? |
The issue with that patch is that FlightTaskAltitude is now producing the altitude setpoint in all cases, meaning that locking won't be as smooth as when done using the smooth vel variant. |
@bresch maybe we want to make |
replaced by #22294 |
Solved Problem
When using jerk limited/acceleration based input position controllers I found that terrain following was not functional. Terrain following z position setpoints were ignored.
Solution
Only set position setpoint to current position if z position setpoint is not already set