Skip to content

Angular Velocity PrimeHub #1735

Answered by dlech
Redstonetill asked this question in Q&A
Jul 29, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You can get the acceleration with hub.imu.acceleration(). https://docs.pybricks.com/en/stable/hubs/primehub.html#pybricks.hubs.PrimeHub.imu.acceleration

But based on my experience, I don't think the sensor is accurate enough and/or can be sampled fast enough to get an accurate velocity from integrating the acceleration over time.

Laurens' suggestion of using the rotation sensors on the motors will be more accurate.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Redstonetill
Comment options

@Redstonetill
Comment options

@dlech
Comment options

Answer selected by Redstonetill
@Redstonetill
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants