| | |
| | | } |
| | | extern uint8_t heart_upload_time; |
| | | uint16_t count_hexupload; |
| | | extern uint8_t open_gps_time; |
| | | void UWBSendUDPTask(void) |
| | | { |
| | | uint16_t checksum,tempdistarray[20]; |
| | |
| | | memcpy(&usart_send[17+taglist_num*4],&anchordata_bat,taglist_num); |
| | | checksum = Checksum_u16(&usart_send[2],15+5*taglist_num); |
| | | memcpy(&usart_send[17+5*taglist_num],&checksum,2); |
| | | if(lounei_flag==0&&heart_upload_time%UPLOAD_4G_TIME==0) |
| | | if((heart_upload_time%UPLOAD_4G_TIME==0&&lounei_flag==0&&open_gps_time>120)||(open_gps_time%UPLOAD_4G_TIME==0&&lounei_flag==0&&open_gps_time<120)) |
| | | { |
| | | HexToAsciiSendUDP(usart_send,19+5*taglist_num); |
| | | count_hexupload++; |