| | |
| | | uint8_t bind_flag; |
| | | int8_t bind_count=BIND_COUNT_NUM; |
| | | extern uint8_t find_flag; |
| | | uint8_t poll_count,poll_flag; |
| | | void SecondTask(void) |
| | | {static uint8_t second_count; |
| | | if(second_count++>60) |
| | |
| | | second_count = 0; |
| | | MinuteTask(); |
| | | } |
| | | poll_flag=1; |
| | | // if(bind_flag) |
| | | // { |
| | | // if(bind_count--<=0) |
| | |
| | | // pca_input_detection_init(pca_handler);//pca检测输入 |
| | | //board_4GUsart_detection_init(_4gUsart_handler); |
| | | //Uwb_init(); |
| | | uwb_open(); |
| | | Anchor_uwb_aoa_square_init(); |
| | | |
| | | OpenUWB(); |
| | | while (1) |
| | | { |
| | | uwb_app_poll(); |
| | | if(poll_flag) |
| | | { |
| | | CloseUWB();//关闭接收 |
| | | Tag_uwb_aoa_square_init(); |
| | | TagRange(); //做标签 |
| | | Anchor_uwb_aoa_square_init(); |
| | | poll_flag=0; |
| | | OpenUWB(); |
| | | } |
| | | if(flag_secondtask) |
| | | { |
| | | flag_secondtask = 0; |