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

AirspeedSelector, FailureDetector: Tailsitter attitude fixes #21319

Merged
merged 4 commits into from
Mar 22, 2023

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Mar 16, 2023

Solved Problem

#21229

Solution

Rotate attitude 90° in airspeed selector and failure detector.

Still have some WARN [ekf2] primary EKF changed 0 (filter fault) -> 3 that I'm looking into, which may have been the root issue for #21229.
It seems to be a EKF side slip fusion failure
# 6 - true if fusion of the synthetic sideslip constraint has encountered a numerical error

@sfuhrer sfuhrer force-pushed the pr-tailsitter-rotation-fixes-main branch from 00f079e to 7322232 Compare March 16, 2023 16:21
@dagar dagar self-requested a review March 16, 2023 16:43
@dagar
Copy link
Member

dagar commented Mar 16, 2023

Distributing even more tailsitter special cases everywhere is a bit concerning.

@sfuhrer
Copy link
Contributor Author

sfuhrer commented Mar 20, 2023

Distributing even more tailsitter special cases everywhere is a bit concerning.

Not nice but quite without alternative aren't we? And compared to other if(tailsitter) special cases the ones related to rotating the attitude are the easiest to justify no?

@dagar @bresch can we get this in and fix the remaining EKF fusion issue in #21328?

bresch
bresch previously approved these changes Mar 20, 2023
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
-set roll/pitch used for failure detection during transition to 0
-rotate estimated attitude 90° in FW flight

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
The attitude frame is wrong for tailsitters doing side slip fusion for wind estimation.
It doesn't take into account that the frames is 90deg tilted in FW flight.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer
Copy link
Contributor Author

sfuhrer commented Mar 21, 2023

@dagar @bresch please have a look at 29d934a

bresch
bresch previously approved these changes Mar 21, 2023
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

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

Perfect, thanks

…on is set

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer
Copy link
Contributor Author

sfuhrer commented Mar 21, 2023

image
LGTM!

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

Successfully merging this pull request may close these issues.

3 participants