Skip to main content

Module axes

Module axes 

Source
Expand description

Mapping a sensor’s axes onto a board’s.

An IMU reports in its own frame, fixed by how the package is soldered. AxisMap turns that into the frame a program wants (say, +Z out of the screen), and AxisMap::from_gravity works the mapping out from three readings taken with the board held in known poses, so it never has to be guessed from a layout drawing.

Structs§

AxisMap
Which sensor axis each board axis reads.

Enums§

Axis
One signed axis of the sensor’s own frame.
GravityError
Why AxisMap::from_gravity could not decide.