| | |
| | | void ComMapCheck(void) |
| | | { |
| | | |
| | | if(g_com_map[ANT_LENGTH]>10000) |
| | | { |
| | | g_com_map[ANT_LENGTH] = 0; |
| | | } |
| | | // if(g_com_map[ANT_LENGTH]>10000) |
| | | // { |
| | | // g_com_map[ANT_LENGTH] = 0; |
| | | // } |
| | | if(g_com_map[WAR_JDQ_TIME]>1000||g_com_map[WAR_JDQ_TIME]<0) |
| | | { |
| | | g_com_map[WAR_JDQ_TIME] = 1; |
| | |
| | | if(dist_threshold>15000) |
| | | {dist_threshold = 15000;} |
| | | } |
| | | u16 JDQ_time; |
| | | u16 JDQ_time,supergroupid; |
| | | int16_t g_commap_antdelay; |
| | | void Program_Init(void) |
| | | { float temp; |
| | |
| | | |
| | | OUT485_ENABLE; |
| | | ComMapCheck(); |
| | | g_com_map[VERSION] = 0x013a; |
| | | g_com_map[VERSION] = (1<<8)|63; |
| | | supergroupid = g_com_map[IMU_THRES]; |
| | | 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]; |