| | |
| | | {dist_threshold = 15000;} |
| | | } |
| | | u16 JDQ_time; |
| | | int16_t g_commap_antdelay; |
| | | int16_t g_commap_antdelay,alarm_angle; |
| | | extern uint16_t samegroup_ancid,anc_mount_dist; |
| | | void Program_Init(void) |
| | | { float temp; |
| | | u16 temp2; |
| | |
| | | // g_com_map[FILTER_COEFFICIENT]=40; |
| | | // g_com_map[ANT_LENGTH]=0; |
| | | // g_com_map[NOMOVESLEEP_TIME]=728; |
| | | |
| | | samegroup_ancid = g_com_map[MODBUS_ID2]; //åç»åºç«ID |
| | | anc_mount_dist = g_com_map[MODBUS_ID3]; //åºç«å®è£
è·ç¦» |
| | | alarm_angle = g_com_map[MODBUS_ID4]; //åºç«æ¥è¦è§åº¦ |
| | | |
| | | OUT485_ENABLE; |
| | | |
| | | g_com_map[VERSION] = (1<<8)|(69); |
| | | g_com_map[VERSION] = (1<<8)|(9); |
| | | FLASH_Read(FLASH_HARDWARE_FLAG, (uint8_t*)&g_com_map[HARDWAREFLAG_INDEX], 16); |
| | | dist_threshold = (g_com_map[SPEEDFILTER_THRES]*10)/(1000/g_com_map[COM_INTERVAL]); |
| | | g_commap_antdelay = g_com_map[ANT_LENGTH]; |
| | |
| | | { |
| | | module_power=67; |
| | | } |
| | | |
| | | if(g_com_map[DEV_ROLE]) |
| | | { |
| | | printf("æ ç¾ID: %d .\r\n",dev_id); |
| | | printf("é讯é´é: %d ms.\r\n",g_com_map[COM_INTERVAL]); |
| | | printf("忬¡é讯åºç«æ°é: %d个.\r\n",g_com_map[MAX_REPORT_ANC_NUM]); |
| | | }else{ |
| | | |
| | | anchor_type = dev_id%g_com_map[MAX_REPORT_ANC_NUM]; |
| | | printf("åºç«ID: %x .\r\n",dev_id); |
| | | printf("åºç«ç±»å: %c .\r\n",anchor_type+0x41); |
| | | printf("忬¡é讯åºç«æ°é: %d个.\r\n",g_com_map[MAX_REPORT_ANC_NUM]); |
| | | } |
| | | |
| | | printf("æ¹åæ§é²æ\r\n"); |
| | | |
| | | OUT485_DISABLE; |
| | | // printf("DEVICE PAIRID: %d .\r\n",g_com_map[PAIR_ID]); |
| | | // printf("DEVICE ALARM DISTANCE: 1.%d 2.%d 3.%d .\r\n",g_com_map[ALARM_DISTANCE1],g_com_map[ALARM_DISTANCE2],g_com_map[ALARM_DISTANCE3]); |