app_detectIsHost.h 558 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __APP_DETECT_ISHOST_H__
  2. #define __APP_DETECT_ISHOST_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 "system.h"
  9. #include "usr_config.h"
  10. typedef enum
  11. {
  12. DETECT_LR_INIT = 0,
  13. DETECT_LR_IS_RIGHT = 1,
  14. DETECT_LR_IS_LEFT = 2,
  15. } DETECT_LR_e;
  16. void app_detect_Init(void);
  17. void app_detect_LR_process_stop(void);
  18. uint8_t app_Get_isHost(void);
  19. uint8_t get_LR_readly(void);
  20. float Mahony_M_GetRoll(void);
  21. float Mahony_M_GetPitch(void);
  22. float Mahony_M_GetYaw(void);
  23. #endif