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

EKF2: allow sideslip fusion to always start with airspeed fusion #24224

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bresch
Copy link
Member

@bresch bresch commented Jan 17, 2025

Solved Problem

During front transition, the drone is still considered as a multirotor. Airspeed fusion can start when there is enough wind-relative velocity but sideslip fusion is still strictly relying on the fixed-wing flag. This causes race conditions in commander when the transition to fixedwing occurs as the ekf needs to receive the message before activating the sideslip fusion.

Solution

The sideslip fusion parameter tells the EKF that this fusion type is possible on this vehicle. We know that it's only possible when airspeed is significant so we can let it start when the airspeed fusion starts as well (regardless of the vehicle type).
This also gives us a bit more flexibility as a multirotor with a vertical stabilizer and an airspeed sensor could also enable sideslip fusion.

Test coverage

This allow sideslip fusion to start during VTOL front transition or even
on a multirotor with a vertical stabilizer and an airspeed sensor for example.
@bresch bresch added the EKF2 label Jan 17, 2025
@bresch bresch requested a review from RomanBapst January 17, 2025 09:38
@bresch bresch self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants