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

MC land detector question #10732

Closed
garfieldG opened this issue Oct 21, 2018 · 3 comments · Fixed by #11172
Closed

MC land detector question #10732

garfieldG opened this issue Oct 21, 2018 · 3 comments · Fixed by #11172

Comments

@garfieldG
Copy link
Contributor

garfieldG commented Oct 21, 2018

Hi,

After looking at the land detector code I have a questions :

  1. Why do we use vz in https://github.com/PX4/Firmware/blob/26e85736a52f5dd6cf2395c06a151d17ae0512f1/src/modules/land_detector/MulticopterLandDetector.cpp#L193, but we use derived z in https://github.com/PX4/Firmware/blob/26e85736a52f5dd6cf2395c06a151d17ae0512f1/src/modules/land_detector/MulticopterLandDetector.cpp#L200? shouldn't we use derived in both cases?

Thanks in advanced:)

@RomanBapst
Copy link
Contributor

@garfieldG I'm not too familiar with that code but I think it has to do with the fact that the estimated velocity can have a considerable bias when landing which makes land detection harder. The derivative of the height state might suffer less and I think that's why it's used.

@garfieldG
Copy link
Contributor Author

@RomanBapst Thank for response!
But I still can't understand why if we landed less than 2 seconds ago we use vz, otherwise we use vertical derivative. Shouldn't we use the same one (estimated vertical velocity or vertical derivative) in both cases?
@Stifael maybe you know how to answer on this one? relates to 26e8573

@Stifael Stifael closed this as completed Oct 31, 2018
@Stifael Stifael reopened this Oct 31, 2018
@Stifael
Copy link
Contributor

Stifael commented Oct 31, 2018

if I remember it correctly, that commit entered the firmware against my advice. That commit was part of a test branch to check if it would improve the detection, which I could not verify (maybe it does, I was just not able to do verify it). The fact that the derivative term is not always used is probably because of inconsistency. It probably would make sense to evaluate once more the difference between z-deriv and vz.

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

Successfully merging a pull request may close this issue.

3 participants