| | |
| | | // anchordata_num=j; |
| | | //} |
| | | uint8_t find_flag; |
| | | uint16_t bind_distance,button_determinate_distance,change_by_frequency_distance; |
| | | uint8_t tag_near_frequency; |
| | | extern uint32_t tag_id_authorization_list_num; |
| | | void TagListUpdate(void) |
| | | { |
| | |
| | | resp_msg_set_ts(&send_buffer[RESP_MSG_POLL_RX_TS_IDX], poll_rx_ts_i64); |
| | | resp_msg_set_ts(&send_buffer[RESP_MSG_RESP_TX_TS_IDX], resp_tx_ts_i64);//此处时间戳int64直接转换为uint64不知道会不会有错误 |
| | | memcpy(&send_buffer[RESP_MSG_ANC_DISTOFFSET],&disoffset,2);//差个修正offset,修正有符号但是这个com表为无符号的,传过去直接赋给Int16_t相当于还原了 |
| | | send_buffer[RESP_MSG_TAG_FREQUENCY]=tag_near_frequency;//新加入改变标签测距hz |
| | | temp_resp_i64=resp_tx_ts_i64; |
| | | temp_count3= phy_timer_count_get(); |
| | | flag_temp2=uwb_tx(send_buffer, 40,1 ,resp_tx_en_start_u32);//立即发送测试size大小 |
| | |
| | | anchordata_bat[taglist_pos] = battary;//保存该基站电量 |
| | | if(tag_authorized_List[taglist_pos]==1) |
| | | { |
| | | if(tagdist_list[taglist_pos]<100) |
| | | if(tagdist_list[taglist_pos]<bind_distance) |
| | | { |
| | | gpio_pin_set(BUTTON_PIN); |
| | | }else{ |