| | |
| | | #endif |
| | | OUT485_ENABLE; |
| | | ComMapCheck(); |
| | | g_com_map[VERSION] = 0x0211; |
| | | g_com_map[VERSION] = 0x0215; |
| | | dev_id = g_com_map[DEV_ID]; |
| | | slottime=ceil((double)g_com_map[MAX_REPORT_ANC_NUM]*SLOT_SCALE)+3; |
| | | max_slotpos=g_com_map[COM_INTERVAL]/slottime; |
| | |
| | | |
| | | for(i=0;i<255;i++) |
| | | { |
| | | g_Tagdist[i]=0xffff; |
| | | g_Tagdist[i]=0x1ffff; |
| | | } |
| | | } |
| | | |
| | |
| | | void HeatBeat(void) |
| | | { u16 checksum; |
| | | GetPressAndHeight(); |
| | | intheight = Height*100+g_com_map[MAX_REPORT_ANC_NUM]; |
| | | intheight = Height*100;//+g_com_map[MAX_REPORT_ANC_NUM]; |
| | | if(synclost_count>5) |
| | | { |
| | | hbsend[6] = 0; |