Files
QD4C-firmware/app/gl_circle.h
Glz ce31d900ee 摄像头测试代码
在main.c文件中img_processing();函数里pts_left和pts_right两个数组储存边线坐标
2023-12-17 16:11:35 +08:00

24 lines
666 B
C
Raw 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;
void CheckCircle(void);
void RunCircle(void);
#endif /* COMMON_H_ */