yincheng.zhong
2024-12-02 f437f7cbf70f6736081754522c655996c02558d8
Src/application/dw_ds_anc.c
@@ -169,25 +169,21 @@
            memcpy(&send_buffer[DIST_IDX], &tagdist_list[taglist_pos], 4);
         }
         motorstate =0;
//            if(tagdist_list[taglist_pos]<g_com_map[ALARM_DISTANCE1]||tagdist_list[taglist_pos]<0)
//            {
//               motorstate =0;
//            }
//            else if(tagdist_list[taglist_pos]<g_com_map[ALARM_DISTANCE2])
//         {
//            if(flag_tag_distsmooth[taglist_pos])
//            {motorstate =2;
//            }else{
//               motorstate =0;
//            }
//         }else if(tagdist_list[taglist_pos]<g_com_map[ALARM_DISTANCE3])
//         {
//            if(flag_tag_distsmooth[taglist_pos])
//            {motorstate =1;
//               }else{
//               motorstate =0;
//            }
//         }
            if(tagdist_list[taglist_pos]<g_com_map[ALARM_DISTANCE2])
         {
            if(flag_tag_distsmooth[taglist_pos])
            {motorstate =2;
            }else{
               motorstate =0;
            }
         }else if(tagdist_list[taglist_pos]<g_com_map[ALARM_DISTANCE3])
         {
            if(flag_tag_distsmooth[taglist_pos])
            {motorstate =1;
               }else{
               motorstate =0;
            }
         }
            send_buffer[GROUP_ID_IDX] = group_id;
         //send_buffer[MAINBASE_INDEX]=flag_syncbase;
         send_buffer[MESSAGE_TYPE_IDX]=NEAR_RESPONSE;