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

EKF: only set in_air flag true if not landed and armed #11455

Closed
wants to merge 1 commit into from

Conversation

CarlOlsson
Copy link
Contributor

@CarlOlsson CarlOlsson commented Feb 13, 2019

Describe problem solved by the proposed pull request
If the user carries the vehicle around the landed flag might be false. Without this change that could result in the EKF initializing the earth magnetic field states and commencing 3D axis mag fusion when still close to the ground.

@mhkabir
Copy link
Member

mhkabir commented Feb 13, 2019

This should go into the land detector, not here, I feel.

@CarlOlsson
Copy link
Contributor Author

Sorry, on our codebase vehicle_land_detected.landed can be true even if the vehicle is not armed. If that is not the case anymore this PR can be closed.

@Antiheavy
Copy link
Contributor

Describe problem solved by the proposed pull request
If the user carries the vehicle around the landed flag might be false. Without this change that could result in the EKF initializing the earth magnetic field states and commencing 3D axis mag fusion when still close to the ground.

this is still a problem for those of us who have hand launched vehicles which will be armed and then handled/carried on the ground before launch. although I guess neither this PR or the existing upstream features @dagar linked actually address this issue after the vehicle is armed.... I only mention this here in case anyone has any brilliant ideas how to fix that case as well. thanks.

@CarlOlsson
Copy link
Contributor Author

this is still a problem for those of us who have hand launched vehicles which will be armed and then handled/carried on the ground before launch.

Oh, that's very bad since in that case it will assume the heading is equivalent to the GPS course over ground to initialize the earth mag states

@Antiheavy
Copy link
Contributor

Oh, that's very bad since in that case it will assume the heading is equivalent to the GPS course over ground to initialize the earth mag states

oh no! @CarlOlsson does this "feature" exist in v1.8.x? or does it have to do with more recent compass changes in Master?

@CarlOlsson
Copy link
Contributor Author

CarlOlsson commented Feb 14, 2019

oh no! @CarlOlsson does this "feature" exist in v1.8.x? or does it have to do with more recent compass changes in Master?

I just checked the logic again and I forgot about one condition, sorry about that. It will only use the GPS course over ground if the velocity is higher than 5 m/s. So that should be fine as long as you don't e.g. launch from a moving boat or something.

@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.

@MaEtUgR MaEtUgR closed this Feb 19, 2020
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.

6 participants