Skip to content

Add IMU example - #137

Merged
amacati merged 3 commits into
mainfrom
feat.imu
Oct 13, 2026
Merged

amacati merged 3 commits into
mainfrom
feat.imu

Conversation

@ratheron

@ratheron ratheron commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

As proposed in #136, I have added and IMU example with biases on acc and gyro. The UWB example has moved to crazyflow_uwb. Since we can't reuse code from this example in the estimator one, we should not extend it further. I would instead drop the estimation example entirely.

Simulate an accelerometer and a gyroscope with noise and a drifting
gyroscope bias in the plugin slot while the drone flies a figure-eight, and
compare the readings with the true state.
@ratheron
ratheron requested a review from amacati October 12, 2026 14:48
@amacati

amacati commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Sounds good. You also wanted to reorganize the examples, right? We could drop the estimator and restructure the docs in one go

Comment thread examples/plugins/imu.py
Comment on lines +1 to +5
"""Example of a simulated IMU as a plugin.

The IMU measures the specific force and the body rates with noise and drifting biases while the
drone flies a figure-eight. The plot compares the readings with the true state.
"""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we somehow auto-add the module docstring into the docs instead of retyping everything? Would be much nicer. Maybe something to include in the restructuring PR

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Will do

Comment thread examples/plugins/imu.py
Comment thread examples/plugins/imu.py Outdated
Comment thread examples/plugins/imu.py Outdated
Comment thread examples/plugins/imu.py Outdated
Comment thread tests/integration/test_examples.py
@amacati
amacati merged commit 876eb1c into main Oct 13, 2026
6 checks passed
@amacati
amacati deleted the feat.imu branch October 13, 2026 11:24
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