19 lines
306 B
C
19 lines
306 B
C
#ifndef __PATH_PLAN_H
|
|
#define __PATH_PLAN_H
|
|
|
|
// 定义方向枚举
|
|
typedef enum
|
|
{
|
|
STRAIGHT,
|
|
LEFT,
|
|
RIGHT
|
|
} Direction;
|
|
|
|
void PathPlanner_Init();
|
|
Direction GetCurrentDirection();
|
|
Direction GetNextDirection();
|
|
void AddPathStep(Direction step);
|
|
void ReplacePathStep(Direction* step, int n);
|
|
|
|
#endif
|