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

Attitude Estimator Model #280

Merged
merged 4 commits into from
Jan 15, 2021
Merged

Attitude Estimator Model #280

merged 4 commits into from
Jan 15, 2021

Conversation

kylekrol
Copy link
Member

@kylekrol kylekrol commented Dec 4, 2020

Attitude Estimator Model

Closes #197.

Pairs with #287 and #288.

Summary of Changes

  • Added an AttitudeEstimator model to mimic the attitude estimator running on the flight computer. More telemetry is exposed as runtime than is available off the flight computer itself.
  • Added a new simulation AttitudeEstimatorTestGnc to actually run tests.

Note that most of the lazily evaluated fields simply facilitate checks on filter health. They are designed to mimic the plots @stewartaslan provided in his old MATLAB script.

Testing

See the plots included with #287 as well as the screenshot below.

everything

@kylekrol kylekrol force-pushed the feature/attitude-estimator branch 2 times, most recently from f6537ce to ccd24d6 Compare January 5, 2021 00:56
@kylekrol kylekrol force-pushed the feature/attitude-estimator branch from 92e1e9c to ddc9eb3 Compare January 7, 2021 00:21
@kylekrol kylekrol marked this pull request as ready for review January 7, 2021 04:00
@kylekrol kylekrol requested a review from shihaocao January 7, 2021 04:00
Comment on lines +1 to +4

# Attitude estimator's validity over time.
- x: truth.t.s
y: fc.leader.attitude.is_valid
Copy link
Member Author

Choose a reason for hiding this comment

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

This set of plots is improved upon in later pull requests.

Comment on lines +40 to +47
- name: "fc.{satellite}.attitude.w"
type: Lazy Vector3
comment: >
Current angular rate estimate.
- name: "fc.{satellite}.attitude.w.error"
type: Lazy Vector3
comment: >
Current angular rate estimate error.
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no *.sigma value here because it isn't estimated directly by the filter and I saw no need to go through the math required to generate it.

@kylekrol kylekrol requested a review from afoarce January 14, 2021 23:50
@kylekrol kylekrol merged commit 8604011 into master Jan 15, 2021
@kylekrol kylekrol deleted the feature/attitude-estimator branch January 15, 2021 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More Exhaustive Tests for the Attitude Filter
2 participants