imu.h 379 B

12345678910111213141516171819202122232425262728
  1. #ifndef IMU_H
  2. #define IMU_H
  3. #include <stdbool.h>
  4. #include <furi_hal.h>
  5. #include "imu_bmi160.h"
  6. #include "imu_lsm6ds3trc.h"
  7. #include "imu_lsm6dso.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define ACC_DATA_READY (1 << 0)
  12. #define GYR_DATA_READY (1 << 1)
  13. #define IMU_TAG "IMU_H"
  14. bool imu_begin();
  15. void imu_end();
  16. int imu_read(double* vec);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif