|
@@ -1719,7 +1719,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
//shiyanbizhang 0929
|
|
//shiyanbizhang 0929
|
|
if(obsDistance>0&& (obsDistance<ServiceCarStatus.aocfDis)&&(obs_speed_for_avoid>-8.0)&&(obs_speed_for_avoid<3.0)&&(realspeed>1)//&& (avoid_speed_flag==true) //
|
|
if(obsDistance>0&& (obsDistance<ServiceCarStatus.aocfDis)&&(obs_speed_for_avoid>-8.0)&&(obs_speed_for_avoid<3.0)&&(realspeed>1)//&& (avoid_speed_flag==true) //
|
|
&&(vehState==normalRun||vehState==backOri || vehState==avoiding) //&&(ObsTimeStart==-1)
|
|
&&(vehState==normalRun||vehState==backOri || vehState==avoiding) //&&(ObsTimeStart==-1)
|
|
- && (gpsMapLine[PathPoint]->runMode==1)&&(gpsMapLine[PathPoint]->mode2!=3000)&&(gpsMapLine[PathPoint+300]->mode2!=3000)&&(gpsMapLine[PathPoint+100]->mode2!=3000)&&(gpsMapLine[PathPoint+300]->mode2!=23)){
|
|
|
|
|
|
+ && (gpsMapLine[PathPoint]->runMode==1)&& (gpsMapLine[PathPoint]->mbnoavoid==false)&&(gpsMapLine[PathPoint]->mode2!=3000)&&(gpsMapLine[PathPoint+300]->mode2!=3000)&&(gpsMapLine[PathPoint+100]->mode2!=3000)&&(gpsMapLine[PathPoint+300]->mode2!=23)){
|
|
// ObsTimeStart=GetTickCount();
|
|
// ObsTimeStart=GetTickCount();
|
|
ObsTimeEnd+=1.0;
|
|
ObsTimeEnd+=1.0;
|
|
//dSpeed = min(6.0,dSpeed);
|
|
//dSpeed = min(6.0,dSpeed);
|
|
@@ -1759,7 +1759,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
cout<<"\n====================preAvoid time count finish==================\n"<<endl;
|
|
cout<<"\n====================preAvoid time count finish==================\n"<<endl;
|
|
}
|
|
}
|
|
|
|
|
|
- if(obsDistance<0 ||obsDistance>ServiceCarStatus.aocfDis){
|
|
|
|
|
|
+ if((obsDistance<0 ||obsDistance>ServiceCarStatus.aocfDis)&&(gpsMapLine[PathPoint]->mbnoavoid==true)){
|
|
ObsTimeStart=-1;
|
|
ObsTimeStart=-1;
|
|
ObsTimeEnd=-1;
|
|
ObsTimeEnd=-1;
|
|
ObsTimeSpan=-1;
|
|
ObsTimeSpan=-1;
|