Skip to content

Conversation

@ToberoCat
Copy link
Contributor

This pull request introduces a fix to libwallaby related to the IMU. The implementation now correctly reads the accelerometer, gyroscope, and magnetometer data as float buffers.

The IMU readings are now properly captured and converted into the correct units on the STM32 side.
These values are transmitted as floats, improving the accuracy of the IMU data.
libwallaby receives these float values, but to maintain compatibility with botui, it currently truncates the floats and converts them into shorts.

Libwallaby will also try to align the received values with the NED reference frame. This means flipping signs and shifting axis so that the axis are all aligned as one would expect them to be. This has been done according to the data sheet of the mpu9250 accounting for the mounting within the wombat (upside down)

This change is forward-compatible, but to fully benefit from the improved precision, a future update to botui will be required to support float values for IMU data.

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.

1 participant