imu.h 231 B

123456789101112131415161718
  1. #pragma once
  2. #include <stdbool.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define ACC_DATA_READY (1 << 0)
  7. #define GYR_DATA_READY (1 << 1)
  8. bool imu_begin();
  9. void imu_end();
  10. int imu_read(double* vec);
  11. #ifdef __cplusplus
  12. }
  13. #endif