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

[Pod] Implement inertial measurements from gyroscope via I2C #29

Closed
taesungh opened this issue Apr 4, 2024 · 2 comments · Fixed by #51
Closed

[Pod] Implement inertial measurements from gyroscope via I2C #29

taesungh opened this issue Apr 4, 2024 · 2 comments · Fixed by #51
Assignees

Comments

@taesungh
Copy link
Member

taesungh commented Apr 4, 2024

Dynamics would like to validate motion of the pod by measuring angular moments. We have a gyroscope/accelerometer to measure angular velocity and acceleration over I2C.

  • Create a Gyroscope abstraction to provide inertial measurements
  • Provide a method to get the angular velocity of the pod as a tuple or struct for each of the primary axes (pitch, yaw, and roll)
  • This data will eventually be sent to the control station, but we can handle that separately
@taesungh
Copy link
Member Author

We can also look into using the mpu6050 crate which appears to support the embedded_hal traits which the RPPAL constructs implement.

@taesungh
Copy link
Member Author

Update: dynamics wants the actual angular displacement of the pod rather than angular velocity. For now, the mpu6050 library will estimate that based on the angle of the acceleration vector, but in practice, we may want to implement numeric integration with Kalman filtering that dynamics is suggesting to get a more correlated measurement.

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 a pull request may close this issue.

3 participants