| | |
| | | // .phy_cfg.rx_ant_id = UWB_RX_ANT_3, /* UWB RX antenna port */ |
| | | //}; |
| | | #ifdef UWB_MK8000_XB |
| | | static struct mk_uwb_configure config = { |
| | | struct mk_uwb_configure config = { |
| | | .phy_work_mode = (uint8_t)(PHY_TX | PHY_RX), |
| | | .phy_cfg.ch_num = 5, /* Channel number. */ |
| | | .phy_cfg.code_index = 9, /* TRX preamble code */ |
| | |
| | | }; |
| | | #endif |
| | | #ifdef UWB_DW1000_MBXJZ_OLD |
| | | static struct mk_uwb_configure config = { |
| | | struct mk_uwb_configure config = { |
| | | .phy_work_mode = (uint8_t)(PHY_TX | PHY_RX), |
| | | .phy_cfg.ch_num = 5, /* Channel number. */ |
| | | .phy_cfg.code_index = 9, /* TRX preamble code */ |
| | |
| | | step_count = mir3da_get_step(); // 获取步数 |
| | | uwbtasktimer = HIDO_TimerGetTick(); |
| | | UWBOneSecondTask(); |
| | | if(g_com_map[UWBFrequency]==1&&uwb_OpenClose_flag==1) |
| | | if(g_com_map[UWBFrequency]==1&&uwb_OpenClose_flag==1&¤t_state==STATE_NORMAL) |
| | | { |
| | | UWBSendUDPTask(); |
| | | } |
| | |
| | | uint8_t i; |
| | | uint16_t tempid; |
| | | uwb_offtime_count=0; |
| | | #ifdef CEJU_ZIUMIAN |
| | | #ifdef CEJU_XIUMIAN |
| | | current_state = STATE_NORMAL; |
| | | #endif |
| | | if(group_id==rx_buf[GROUP_ID_IDX]&&rx_buf[MESSAGE_TYPE_IDX] == MBX_POLL)//判断是否是和自己是同一组通讯的且为poll包 |