|
@@ -982,8 +982,10 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
}else{
|
|
}else{
|
|
dSpeed=min(dSpeed, 3.0);
|
|
dSpeed=min(dSpeed, 3.0);
|
|
final_brake_lock=true;
|
|
final_brake_lock=true;
|
|
- if(gpsMapLine[PathPoint]->mode2==23){
|
|
|
|
- minDecelerate=-0.7;
|
|
|
|
|
|
+ if(PathPoint+50<gpsMapLine.size()){
|
|
|
|
+ if(gpsMapLine[PathPoint+50]->mode2==23){
|
|
|
|
+ minDecelerate=-0.5;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1951,7 +1953,10 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
dSpeed = ServiceCarStatus.group_comm_speed;
|
|
dSpeed = ServiceCarStatus.group_comm_speed;
|
|
}
|
|
}
|
|
if(dSpeed==0){
|
|
if(dSpeed==0){
|
|
- minDecelerate=min(-1.0f,minDecelerate);
|
|
|
|
|
|
+ if(realspeed<6)
|
|
|
|
+ minDecelerate=min(-0.5f,minDecelerate);
|
|
|
|
+ else
|
|
|
|
+ minDecelerate=min(-0.6f,minDecelerate); //1.0f zj-0.6
|
|
}
|
|
}
|
|
|
|
|
|
gps_decition->wheel_angle = 0.0 - controlAng;
|
|
gps_decition->wheel_angle = 0.0 - controlAng;
|
|
@@ -2470,8 +2475,6 @@ double iv::decition::DecideGps00::getSpeed(std::vector<Point2D> gpsTrace) {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
//void iv::decition::DecideGps00::getEsrObs(std::vector<iv::ObstacleBasic> obsRadars) {
|
|
//void iv::decition::DecideGps00::getEsrObs(std::vector<iv::ObstacleBasic> obsRadars) {
|
|
//
|
|
//
|
|
// if (!obsRadars.empty())
|
|
// if (!obsRadars.empty())
|
|
@@ -3777,18 +3780,18 @@ void iv::decition::DecideGps00::transferGpsMode2( const std::vector<GPSData> gps
|
|
|
|
|
|
givlog->debug("decition_brain","PATHFORE: %d,Forecast: %d,cross: %d",
|
|
givlog->debug("decition_brain","PATHFORE: %d,Forecast: %d,cross: %d",
|
|
PathPoint+forecast_point_num,forecast_point_num,cross);
|
|
PathPoint+forecast_point_num,forecast_point_num,cross);
|
|
-
|
|
|
|
if( gpsMapLine[PathPoint]->mode2==3000){
|
|
if( gpsMapLine[PathPoint]->mode2==3000){
|
|
if(obsDistance>4){ //7 zj-5
|
|
if(obsDistance>4){ //7 zj-5
|
|
obsDistance=200;
|
|
obsDistance=200;
|
|
}else{
|
|
}else{
|
|
lock_flag=false;
|
|
lock_flag=false;
|
|
|
|
+ obsSpeed=-realspeed/3.6;
|
|
}
|
|
}
|
|
if((realspeed>3)&&(lock_flag==false)){
|
|
if((realspeed>3)&&(lock_flag==false)){
|
|
minDecelerate=-0.5;
|
|
minDecelerate=-0.5;
|
|
}else{
|
|
}else{
|
|
- dSpeed=min(dSpeed,3.0);
|
|
|
|
- lock_flag=true;
|
|
|
|
|
|
+ dSpeed=min(dSpeed,3.0);
|
|
|
|
+ lock_flag=true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if(gpsMapLine[PathPoint]->mode2==3001){
|
|
else if(gpsMapLine[PathPoint]->mode2==3001){
|