📄 msg.h
字号:
/* The MSG.h file */
#ifndef _MSG_H_
#define _MSG_H_
#define MSG_TYPE_TRANS_INFORM 0x01 /* Used in data transmiting information*/
#define MSG_TYPE_ACK_STATE 0x02 /* Used in Ack */
#define MSG_TYPE_REC_STATE 0x04 /* Used in data receiving state Ack */
#define MSG_TYPE_PROC_RESULT 0x08 /* Used in send the processing result*/
#define PROC_TYPE_INSPECT 0x01
#define PROC_TYPE_TRACE 0x02
#define PROC_TYPE_ALL 0x04
typedef struct
{
INT8U ProcessType; //需进行何种处理(检测/跟踪)
INT8U TargetMode; //目标类型:桥梁,机场跑道或雷达
INT16U Height; //导弹高度
INT16U Algorithm_Dsp1; //dsp1采用何种算法进行处理
INT16U Algorithm_Dsp2; //dsp2采用何种算法进行处理
INT32U Target_x; //目标初始位置x
INT32U Target_y; //目标初始位置y
long Target_Cof; //目标初始置信度cof
int x1;
int y1;
int x2;
int y2;
int alpha;
}
TRANS_INFORM;
typedef enum{
READY = 0, //应答数据通信请求:准备好
BUSY //应答数据通信请求:忙
}
ACK_STATE;
typedef enum{
REC_NO_ERROR = 0,
REC_ERROR
}
REC_STATE;
typedef struct
{
INT32U Target_x;
INT32U Target_y;
INT32U Target_Cof;
}
PROC_RESULT;
typedef struct
{
INT8U FrameID;
INT8U DstDspId;
INT8U SrcdspId;
INT8U MsgType;
union{
TRANS_INFORM TSMsg;
ACK_STATE ASMsg;
REC_STATE RSMsg;
PROC_RESULT PRMsg;
}MsgTypeContent;
INT32U CheckSum;
}
MSG;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -