Parcourir la source

fix(grpc_BS):fix a path plan logic

tianxiaosen il y a 3 ans
Parent
commit
db2461af8c
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      src/driver/driver_cloud_grpc_client_BS/vehicle_control.cpp

+ 5 - 2
src/driver/driver_cloud_grpc_client_BS/vehicle_control.cpp

@@ -429,9 +429,12 @@ void VehicleUploadMapClient::run()
             {
                 std::string reply = uploadMap();
 //                std::cout<< reply <<std::endl;
-                if(isNeedMap == true && allowPlan == true)
+                if(isNeedMap == true)
                 {
-                    updateMapPOIData();
+                    if(allowPlan == true)
+                        updateMapPOIData();
+                    else
+                        allowPlan = false;
                 }
             }
             lastTime = xTime.elapsed();