| | |
| | | #define GROUP_NUM 3 |
| | | uint16_t group_min_dist[GROUP_NUM+1]; |
| | | uint32_t temp231; |
| | | uint8_t recnum[3]; |
| | | uint16_t recnum[3]; |
| | | void MbxTagUwbRec(void) |
| | | { |
| | | |
| | |
| | | // { |
| | | // break; |
| | | // } |
| | | recnum[2]++; |
| | | frame_seq_nb2 = rx_buffer[SEQUENCE_IDX]; |
| | | battary = rx_buffer[BATTARY_IDX]; |
| | | button = rx_buffer[BUTTON_IDX]; |
| | |
| | | lora_sendbuffer[GPS_CHAFENLINGQI] = gps_chafenlingqi; |
| | | #endif |
| | | // memcpy(&lora_sendbuffer[BAR_HEIGHT_IDX],&bar_height,2); |
| | | memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*2],recnum,6); |
| | | report_ancnum+=3; |
| | | |
| | | lora_sendbuffer[ANCNUM_IDX] = report_ancnum; |
| | | memcpy(&lora_sendbuffer[ANCID_IDX],report_ancid,report_ancnum*2); |
| | | memcpy(&lora_sendbuffer[ANCID_IDX],report_ancid,(report_ancnum-3)*2); |
| | | memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*2],report_ancdist,report_ancnum*2); |
| | | checksum = Checksum_u16(lora_sendbuffer,4*report_ancnum+ANCID_IDX); |
| | | memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*4],&checksum,2); |
| | | Radio.Send(lora_sendbuffer,ANCID_IDX+report_ancnum*4+2); |
| | | LED_TB_ON; |
| | | bat_percent=Get_Battary(); |
| | | |
| | | for(uint8_t i=0;i<3;i++) |
| | | recnum[i] = 0; |
| | | |
| | | } |
| | | uint8_t Lora_send_flag; |