Skip to content

Add demo for stream visualization#122

Merged
jamesmunns merged 12 commits intojamesmunns:mainfrom
trappitsch:demo_stream_visualization
Sep 2, 2025
Merged

Add demo for stream visualization#122
jamesmunns merged 12 commits intojamesmunns:mainfrom
trappitsch:demo_stream_visualization

Conversation

@trappitsch
Copy link
Copy Markdown
Collaborator

This adds a demo for visualizing a gryo and accelerometer data from the tilt demo using egui and egui_plot. The example is fairly simple, but shows the basics. Limitations in streaming are likely due to the fact that live plotting is fairly heavy.

An option exists to run "simulated data", which shows some math functions instead of the ergot function. However, this example is running well with ergot, see James' demo here.

Axis are now also labeled. @jamesmunns: Are my scaling factors correct?

  • Accelerometer limited to +-2g
  • Gyro set to +-245 dps (although the chip's datasheet would indicate it's 250 dps?), - imu_timestamp I assumed is increasing by one every 1/6.66kHz?

lmk what you think :)

@jamesmunns
Copy link
Copy Markdown
Owner

I think this is wonderful, thank you @trappitsch! I'm going to merge and do a couple of touch-ups, I'll tag you in that PR.

@jamesmunns jamesmunns merged commit 0f96be6 into jamesmunns:main Sep 2, 2025
7 checks passed
@trappitsch
Copy link
Copy Markdown
Collaborator Author

sweet, thanks! one thing to keep in mind:

  • time conversion
  • gyro conversion

Those constants might still off. Pretty sure the accelerometer conversion one is correct.

@trappitsch trappitsch deleted the demo_stream_visualization branch September 2, 2025 19:42
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