turnDetection.h 329 B

1234567891011121314151617181920
  1. #ifndef _TURNDETECTION_H_
  2. #define _TURNDETECTION_H_
  3. //---------------include
  4. #include "main.h"
  5. #include "stdio.h"
  6. #include "atk_ms6050.h"
  7. #include <math.h>
  8. #include <stdint.h>
  9. //---------------param
  10. extern uint8_t turnFlag;
  11. extern float previousYaw; // Yaw£¨Æ«º½½Ç£©
  12. //---------------fun
  13. extern int isTurning(void);
  14. #endif