Skip to content
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

Land detector edge case in descend mode #13231

Closed
julianoes opened this issue Oct 18, 2019 · 4 comments
Closed

Land detector edge case in descend mode #13231

julianoes opened this issue Oct 18, 2019 · 4 comments

Comments

@julianoes
Copy link
Contributor

Describe the bug
The land detector seems to detect ground contact in Descend mode (RC land failsafe without GPS).

  1. vertical_movement to be false: https://github.com/PX4/Firmware/blob/95dc522b99688a08402ac6462ad28f5dfd338eda/src/modules/land_detector/MulticopterLandDetector.cpp#L154
  2. hit_ground to be true: https://github.com/PX4/Firmware/blob/95dc522b99688a08402ac6462ad28f5dfd338eda/src/modules/land_detector/MulticopterLandDetector.cpp#L165

This happens because the z controller only reacts slowly to the new setpoint so the z velocity down is much less than the z velocity setpoint here:
https://github.com/PX4/Firmware/blob/95dc522b99688a08402ac6462ad28f5dfd338eda/src/modules/land_detector/MulticopterLandDetector.cpp#L151-L154

One observation of the descend case is that the velocity setpoint jumps to the land speed instead of gradually reaching it like in Land (with GPS) mode.

bokeh_plot(1)

To Reproduce
This is hard to reproduce in SITL because the drone seems to follow the setpoint quicker.

Expected behavior
It should not detect ground contact until actually landed.

Log Files and Screenshots

This happened in a failsafe descend test:
https://review.px4.io/plot_app?log=3104d449-dd29-473f-9055-354984ff8afa

This does not happen in normal landing:
https://review.px4.io/plot_app?log=2ea6423f-b232-45c9-8c40-32e775118359

More info in #13143 (comment).

FYI @bresch @MaEtUgR

@MaEtUgR
Copy link
Member

MaEtUgR commented Oct 22, 2019

Related: #13124, #11683

@stale stale bot added the stale label Jan 20, 2020
@bresch bresch removed the stale label Mar 4, 2020
@stale stale bot added the stale label Jun 2, 2020
@dagar dagar self-assigned this Jun 10, 2020
@stale stale bot removed the stale label Jun 10, 2020
@dagar dagar added this to the Release v1.11.0 milestone Jun 10, 2020
@PX4 PX4 deleted a comment from stale bot Jun 10, 2020
@PX4 PX4 deleted a comment from stale bot Jun 10, 2020
@stale
Copy link

stale bot commented Sep 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Sep 11, 2020
@stale stale bot removed the stale label Jan 2, 2021
@LorenzMeier
Copy link
Member

@MaEtUgR Can you think of a simple solution?

@LorenzMeier
Copy link
Member

This has been reworked since, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants