diff --git a/IMU.hpp b/IMU.hpp index 5b97992..62142c0 100644 --- a/IMU.hpp +++ b/IMU.hpp @@ -9,6 +9,38 @@ #define AUTOPILOT_SHARED_DATA_IMU_HPP_ +#include "stdint.h" +#include "stdbool.h" + +namespace IMU { + + + + +struct Data { + + int16_t acc_x = 0; + int16_t acc_y = 0; + int16_t acc_z = 0; + + int16_t gyr_x = 0; + int16_t gyr_y = 0; + int16_t gyr_z = 0; + + int16_t mag_x = 0; + int16_t mag_y = 0; + int16_t mag_z = 0; + + bool isCallibrating = false; +}; +//IMU uses SPI 1 +//MAG uses I2C + + + + +} //namespace IMU +