#ifndef __GLOBAL_PARAM_H__ #define __GLOBAL_PARAM_H__ #include "main.h" #define COM_MAP_SIZE 150 //MAP±íµÄ×î´ó¿Õ¼ä #define DEFAULT_DISTANCE 1000 //³õʼ²â¾à¾àÀëΪ10Ã× #define DEFAULT_DEV_ID 5555 //ĬÈÏÉ豸IDÊÇ5555 /*---------------Map Definition-------------------*/ #define MAP_SIGN_INDEX 0x0 #define VERSION 0x1 #define DEV_ID 0x2 //É豸µÄId #define COM_INTERVAL 0x3 //ͨѶ¼ä¸ô #define MAX_REPORT_ANC_NUM 0x4 //µ¥´ÎͨѶ»ùÕ¾ÉÏÏÞ #define GROUP_ID 0x5 //µ¥´ÎͨѶ»ùÕ¾ÏÂÏÞ #define DIST_OFFSET 0x6 #define DEV_ROLE 0x7 //¸ÃÉ豸ÊÇanchor»¹ÊÇtag #define ANC_POLL 0x8 //»ùÕ¾Ö÷¶¯²â¾à #define ALARM_DEV 0x9 //ÊÇÄĸöÉ豸±¨¾¯ #define ALARM_DISTANCE1 0xA //СÓÚ¶àÉÙ¾àÀ뱨¾¯ #define ALARM_DISTANCE2 0xB //СÓÚ¶àÉÙ¾àÀ뱨¾¯ #define ALARM_DISTANCE3 0xC //СÓÚ¶àÉÙ¾àÀ뱨¾¯ #define PAIR_ID 0xD //СÓÚ¶àÉÙ¾àÀ뱨¾¯ #define HEARTBEAT 0xE #define MODBUS_MODE 0xF #define NEARBASE_NUM 0x10 #define NEARBASE_ID1 0x11 #define NEARBASE_ID2 0x12 #define NEARBASE_ID3 0x13 #define NEARBASE_ID4 0x14 #define NEARBASE_ID5 0x15 #define NEARBASE_ID6 0x16 #define NEARBASE_ID7 0x17 #define NEARBASE_ID8 0x18 #define NEARBASE_ID9 0x19 #define NEARBASE_ID10 0x1a #define POWER 0x1B #define IMU_THRES 0x1C #define NOMOVESLEEP_TIME 0x1D #define MOTOR_ENABLE 0x1E #define IMU_ENABLE 0x1F #define REMOTEPARA_STATE 0x20 #define ACTIVE_INDEX 0x22 #define HEIGHTOFFEST_INDEX 0x28 #define MOTOR_ONTIME 500 #define MOTOR_OFFTIME 500 #define CNT_RESTART 0x30 #define CNT_REBOOT 0x31 #define CNT_UPDATE 0x32 /*------------END Map Definition-------------------*/ extern uint16_t g_com_map[COM_MAP_SIZE],g_com_map2[COM_MAP_SIZE]; extern uint16_t rtag_com_map[30]; extern uint32_t save_com_map_to_flash(void); extern void parameter_init(void); void EnterUWBUpdateMode(void); #endif