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

Fix examples #3

Merged
merged 4 commits into from
Mar 10, 2024
Merged

Fix examples #3

merged 4 commits into from
Mar 10, 2024

Conversation

JanMH
Copy link

@JanMH JanMH commented Mar 10, 2024

Hello,

as discussed in issue #2 here is a PR fixing the examples. I'll provide the additional methods with durations in a separate PR another day.

I'd me happy about feedback on the code.

Jan Herlyn added 3 commits March 10, 2024 20:08
Previously, the time_stamp for all update methods was called dt. This
can be confusing since these timestamps are absolute timestamps instead
of delta time.
Fix the examples to replicate the actual behavior of the timestamps of
the fusion algorithm.
@@ -15,7 +15,7 @@ impl Fusion {
hard_iron_offset: FusionVector::zero(),
ahrs,
offset: FusionGyrOffset::new(sample_rate),
last_dt: 0f32,
last_time_stamp: 0f32,
Copy link
Owner

Choose a reason for hiding this comment

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

Lets change time_stamp & last_time_stamp to single word, timestamp & last_timestamp accordingly

Copy link
Author

Choose a reason for hiding this comment

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

Done

@mark2b mark2b merged commit f4c4c58 into mark2b:master Mar 10, 2024
1 check passed
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.

2 participants