-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Conversation
Signed-off-by: CarlOlsson <[email protected]>
This should go into the land detector, not here, I feel. |
Sorry, on our codebase |
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. |
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? |
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. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
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.