40 lines
496 B
C
40 lines
496 B
C
|
#ifndef MAP_H
|
|||
|
#define MAP_H
|
|||
|
#include "struct_typedef.h"
|
|||
|
|
|||
|
#define POS_ALLOW_MISTAKE 20.0
|
|||
|
#define POS_ALLOW_ANGLE_MISTAKE 0.01 //Լ0.6<EFBFBD><EFBFBD>
|
|||
|
//#define POINT_CURRENT 306
|
|||
|
//#define POINT_LEFT 1694
|
|||
|
//#define POINT_FRONT 1000
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
typedef struct{
|
|||
|
fp32 x;
|
|||
|
fp32 y;
|
|||
|
fp32 angle;
|
|||
|
fp32 v;
|
|||
|
|
|||
|
int cnt_point;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
|
|||
|
}point_t;
|
|||
|
|
|||
|
//·<><C2B7>
|
|||
|
typedef struct{
|
|||
|
|
|||
|
enum
|
|||
|
{
|
|||
|
STOP = 1 ,
|
|||
|
START = 2 ,
|
|||
|
MOVING = 3
|
|||
|
}moveState;
|
|||
|
uint8_t points_num;
|
|||
|
float mistake;
|
|||
|
float angle_mistake;
|
|||
|
}PathState_t;
|
|||
|
|
|||
|
|
|||
|
#endif
|