-
Notifications
You must be signed in to change notification settings - Fork 6
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
31 estimator ekf refactor #68
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The propagate model and measurment updates have been put in a callable format. There is also error checking for the inputs. UNTESTED
Some functions were needed to update on each call so we have to pass the functions. Checks will largely be made at compile time which will remove the benefit of our checks so I removed them.
Fixed the definitions to make more sense for the propagate and measurment updates.
implementation. Tested and it works!
The attitude estimation are now happening using the ekf, it has been tested and it works as well as the previous.
Showed what each line is doing, in an effort to make it clear what to do if you want to add a sensor.
This actually has a marginal increase in position accuracy. Mainly it allows you to only define 2 functions and get your estimate. It also does not have the same issue where the course estimate is bad if you use a very slightly older estimate.
It would be nice to have a more clean abstraction that binds the funcitons. I think that would improve readablity. I tried this but it was too complex, and not worth it. Instead I put them all in a function at the bottom with an explanation.
Closed
bsutherland333
approved these changes
Jul 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nice work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The refactor is complete! There is now an a class that has all of the tools to make an EKF. It has a few functions to make this easier, specifically:
propagate_model' - Propagates model for the prediction step.
measurement_update- Updates the state estimate based on the predicted measure and the actual measure.
single_measurement_update` - If it is preferred you can update one measurement at a time.I tested both of the methods of one measure at a time or all at once. Both are functional there was a minor improvement for the all-at-once.
There will be a lot of conflicts since the renaming happened.
What are y'all's thoughts on the implementation?