drv_calibration.h 681 B

12345678910111213141516171819202122232425262728
  1. #ifndef __app_ImuCalibration_h__
  2. #define __app_ImuCalibration_h__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "usr_config.h"
  9. enum{
  10. ImuCal_init,
  11. ImuCal_GetData,
  12. ImuCal_Analyze,
  13. ImuCal_finish,
  14. ImuCal_error,
  15. ImuCal_quiet,
  16. };
  17. extern char calibration_printfbuf[256];
  18. #define Mahony_PRINT(...) send_ANO(0,(unsigned char*)calibration_printfbuf,sprintf(calibration_printfbuf,__VA_ARGS__))
  19. void ImuCalibration_pcs(short* Acc, short* Gyr, short* Mag);
  20. uint8_t ImuCalibration_GetState(void);
  21. void ImuCalibration_SetState(uint8_t _state);
  22. void send_ANO(unsigned char fun, unsigned char* p, int len);
  23. #endif