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

Commander: Add land detection configuration to preflight checks #8618

Closed
wants to merge 1 commit into from

Conversation

LorenzMeier
Copy link
Member

@LorenzMeier LorenzMeier commented Jan 7, 2018

This should help to avoid having users which set up the land detector up for in-air land detection.

@PX4TestFlights Please test.

This should help to avoid having users which set up the land detector up for in-air land detection.
bool success = true; // start with a pass and change to a fail if any test fails

// Check the relationship between land detection threshold and land speed
float land_speed, land_detect_speed;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If MC or VTOL

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true, but if that param is messed up on a fixed wing it would be equally disconcerting.

@dagar
Copy link
Member

dagar commented Jan 7, 2018

I'm wondering if it would be cleaner architecturally for the land detector (aka vehicle model) to report its status instead and have commander simply enforce the requirement (vehicle model is alive and reports healthy).

Then we can avoid having to piece together the logic in a completely separate module.

@LorenzMeier
Copy link
Member Author

Yes, we should rework this PR to fulfil that.

@MaEtUgR
Copy link
Member

MaEtUgR commented Jan 8, 2018

As we're aiming to fix cases like #8600 I want to mention that we also had these false positives for the first stage of landing detection resulting in very short thrust drops when the hover thrust configuration was completely off (was too high) because the land detector uses the parameters to set it's thresholds. I agree that having the checks in the same place would make it easier for the future.

@stale
Copy link

stale bot commented Oct 13, 2019

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 Oct 13, 2019
@LorenzMeier LorenzMeier deleted the pr-check-land-params branch January 21, 2020 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants