-
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
Reintroduce slow down when landing manually #11540
Conversation
|
||
} else if (_sub_home_position->get().valid_alt) { | ||
dist_to_ground = -(_position(2) - _sub_home_position->get().z); | ||
} |
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.
This is really similar to https://github.com/PX4/Firmware/blob/f229444722132a2e71d92d425597faaadcb480c4/src/lib/FlightTasks/tasks/AutoMapper/FlightTaskAutoMapper.cpp#L149-L162
Which one is best? Should we use the same code for both?
I tested this branch with the SmoothVel FlightTask and worked as expected: @MaEtUgR The thing I might still want is to limit the upward velocity the same way. |
I already ported the same thing to upstream some time ago 😄 : #11080 |
when still close to ground
dd9780f
to
3467bdb
Compare
@bresch I rebased on master and added the slow start upwards when close to ground part. I did a quick successful SITL test. Could you do your checks as well? |
@MaEtUgR Cool, I'll try that tomorrow if possible. |
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.
I made a few SITL tests and works as expected, I think it's ready to go for the flight test team.
@PX4/testflights Can you test that on a quadcopter please? Thanks! |
Parameters tested on Pixhawk v4Pro: Smooth position control of MPC_POS_MODE; 3m/s/s for MPC_ACC_DOWN_MAX and 3m/s/s for MPC_ACC_UP_MAX, no issues were noted. Good flight in general. https://review.px4.io/plot_app?log=bc7f38cc-da4b-46ad-bc7d-c33837659a90 Parameters tested on Pixracer v4: Smooth position control of MPC_POS_MODE; 3m/s/s for MPC_ACC_DOWN_MAX and 3m/s/s for MPC_ACC_UP_MAX, no issues were noted. Good flight in general. https://review.px4.io/plot_app?log=bc7f38cc-da4b-46ad-bc7d-c33837659a90 Parameters tested on Pixracer v4: Smooth position control (velocity) of MPC_POS_MODE; 3m/s/s for MPC_ACC_DOWN_MAX and 3m/s/s for MPC_ACC_UP_MAX, no issues were noted. Good flight in general. https://review.px4.io/plot_app?log=2aff3e8a-cdcc-4075-8445-39b217efc403 |
Thanks for testing! |
Tested on Pixhawk 4 v5, parameter tested were:
Issues Noted:
https://review.px4.io/plot_app?log=43aece45-c1ea-49dd-a22d-5ff0d577bb6a |
@Junkim3DR One moment. This pr does not change anything with the parameters you listed. Ar you completely sure that it was the cause of your problems? Were there any follow-ups I missed? Does this still happen on master after the pr was merged? |
Test data / coverage
Implementation is in our public release and tested a lot. The port is untested (not even SITL).
Describe problem solved by the proposed pull request
Same as #11487. I'm porting our solution here for comparison. Discussing with @bresch about how to proceed with the altitude slowdown/smoothing.
Additional context
#10659
There was a global position controller wide slow down constraint when flying downwards and getting close to the ground before the flight task architecture. For auto flight it was added again but not for manual flight yet.