| | |
| | | } |
| | | uint8_t readgcom_flag1; |
| | | uint32_t current_count11,current_count22,current_count33,current_count44,current_count55; |
| | | uint16_t adc_caiji; |
| | | uint8_t adc_one; |
| | | void DiscPoll2(void) |
| | | { |
| | | uint32_t temp1,temp2,dw_systime,mindist_slavebaseid,mindist; |
| | |
| | | |
| | | poll_tx_ts_i64 = ranging_tx_time_correct(poll_tx_en_start_u32 + phy_shr_duration());//修正时间戳 |
| | | temp_tag_count1=phy_timer_count_get(); |
| | | adc_caiji++; |
| | | if(adc_caiji>5&&adc_one==0) |
| | | { |
| | | adc_one=1; |
| | | adc_caiji=0; |
| | | MinuteTask(); |
| | | } |
| | | else if(adc_one==1&&adc_caiji>3600) |
| | | { |
| | | adc_caiji=0; |
| | | MinuteTask(); |
| | | } |
| | | while(mac_is_busy());//等待发送完成 |
| | | |
| | | tx_near_msg[TAGCONFIGSUCCESS_INDEX] =0; |
| | |
| | | |
| | | poll_tx_ts_i64 = ranging_tx_time_correct(poll_tx_en_start_u32 + phy_shr_duration());//修正时间戳 |
| | | temp_tag_count1=phy_timer_count_get(); |
| | | adc_caiji++; |
| | | if(adc_caiji>5&&adc_one==0) |
| | | { |
| | | adc_one=1; |
| | | adc_caiji=0; |
| | | MinuteTask(); |
| | | } |
| | | else if(adc_one==1&&adc_caiji>3600) |
| | | { |
| | | adc_caiji=0; |
| | | MinuteTask(); |
| | | } |
| | | while(mac_is_busy());//等待发送完成 |
| | | |
| | | tx_near_msg[TAGCONFIGSUCCESS_INDEX] =0; |