|
@@ -184,6 +184,7 @@ std::vector<double> lastDistanceVector(roadSum, -1);
|
|
|
|
|
|
bool qiedianCount = false;
|
|
|
//日常展示
|
|
|
+static int sensor_update=0;
|
|
|
|
|
|
iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_gps_ins,
|
|
|
const std::vector<GPSData> gpsMapLine,
|
|
@@ -233,8 +234,11 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
DecideGps00::minDis,
|
|
|
DecideGps00::maxAngle);
|
|
|
DecideGps00::lastGpsIndex = PathPoint;
|
|
|
-
|
|
|
- adjuseGpsLidarPosition();
|
|
|
+ if(sensor_update==0)
|
|
|
+ {
|
|
|
+ adjuseGpsLidarPosition();
|
|
|
+ sensor_update=1;
|
|
|
+ }
|
|
|
if(ServiceCarStatus.speed_control==true){
|
|
|
Compute00().getDesiredSpeed(gpsMapLine); //add by zj
|
|
|
}
|
|
@@ -1898,9 +1902,14 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
//------------------------------v2x traffic light end--------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
- if(obsDistance>0 && obsDistance<10){
|
|
|
+ if((ServiceCarStatus.msysparam.mvehtype=="hapo")&&(abs(realspeed)<18)){
|
|
|
+ if(obsDistance>0 && obsDistance<6){
|
|
|
+ dSpeed=0;
|
|
|
+ }
|
|
|
+ }else if(obsDistance>0 && obsDistance<10){
|
|
|
dSpeed=0;
|
|
|
}
|
|
|
+
|
|
|
// obsDistance=-1; //1227
|
|
|
|
|
|
if(ServiceCarStatus.group_control){
|