SBB Micro
Source code for the self-balancing-bike microcontroller unit (Teensy 4.1-based). 🚀️
|
IMU raw data. More...
#include <objects.h>
Public Attributes | |
int32_t | accs_mg [3] |
Raw accelerations (in g). | |
int32_t | gyros_mdps [3] |
Raw angular velocities (in mdeg/s). | |
int32_t | mags_mG [3] |
Raw magnetic field (in mG). | |
float | gyros_offset [3] |
Gyrometer offsets (in mdeg/s). | |
IMU raw data.
The struct contains the raw data from the IMU (not rotated) and the offsets of the gyrometers:
int32_t ImuData::accs_mg[3] |
Raw accelerations (in g).
x,y,z values are expressed in the accelorometer-fixed frame.
int32_t ImuData::gyros_mdps[3] |
Raw angular velocities (in mdeg/s).
x,y,z values are expressed in the accelorometer-fixed frame.
float ImuData::gyros_offset[3] |
Gyrometer offsets (in mdeg/s).
int32_t ImuData::mags_mG[3] |
Raw magnetic field (in mG).
x,y,z values are expressed in the magnetometer-fixed frame.