Files
QDAC-firmware/app/gl_circle.h
2024-07-13 19:00:45 +08:00

25 lines
688 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef CIRCLE
#define CIRCLE
enum circle_type_e {
CIRCLE_NONE, // 非圆环模式
CIRCLE_LEFT_BEGIN,
CIRCLE_RIGHT_BEGIN, // 圆环开始识别到单侧L角点另一侧长直道。
CIRCLE_LEFT_IN,
CIRCLE_RIGHT_IN, // 圆环进入,即走到一侧直道,一侧圆环的位置。
CIRCLE_LEFT_RUNNING,
CIRCLE_RIGHT_RUNNING, // 圆环内部。
CIRCLE_LEFT_OUT,
CIRCLE_RIGHT_OUT, // 准备出圆环即识别到出环处的L角点。
CIRCLE_LEFT_END,
CIRCLE_RIGHT_END // 圆环结束,即再次走到单侧直道的位置。
};
extern enum circle_type_e circle_type;
extern int32_t ceshi;
void CheckCircle(void);
void RunCircle(void);
#endif /* COMMON_H_ */