|
@@ -1048,23 +1048,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
|
|
|
}
|
|
|
|
|
|
- if(mbGroupSpeedCtrl)
|
|
|
- {
|
|
|
- if(bgroupgrpc)
|
|
|
- {
|
|
|
- double fdec_after = mGroupSpeedCtrl.Getmindec(xgroupgrpcinfo,gpsMapLine,PathPoint,secSpeed);
|
|
|
- if((fdec_after<-0.001)&(fdec_after < minDecelerate))
|
|
|
- {
|
|
|
- minDecelerate = fdec_after;
|
|
|
- }
|
|
|
|
|
|
- double fdec_front = mGroupSpeedCtrl.Getmindec_front(xgroupgrpcinfo,gpsMapLine,PathPoint);
|
|
|
- if((fdec_front<-0.001)&(fdec_front < minDecelerate))
|
|
|
- {
|
|
|
- minDecelerate = fdec_front;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
DecideGps00::lastGpsIndex = PathPoint;
|
|
|
|
|
@@ -1157,6 +1141,25 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if(mbGroupSpeedCtrl)
|
|
|
+ {
|
|
|
+ if(bgroupgrpc)
|
|
|
+ {
|
|
|
+ double fdec_after = mGroupSpeedCtrl.Getmindec(xgroupgrpcinfo,gpsMapLine,PathPoint,secSpeed);
|
|
|
+ if((fdec_after<-0.001)&(fdec_after < minDecelerate))
|
|
|
+ {
|
|
|
+ minDecelerate = fdec_after;
|
|
|
+ }
|
|
|
+
|
|
|
+ double fdec_front = mGroupSpeedCtrl.Getmindec_front(xgroupgrpcinfo,gpsMapLine,PathPoint,secSpeed);
|
|
|
+ if((fdec_front<-0.001)&(fdec_front < minDecelerate))
|
|
|
+ {
|
|
|
+ minDecelerate = fdec_front;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if(!ServiceCarStatus.inRoadAvoid){
|
|
|
roadOri = gpsMapLine[PathPoint]->roadOri;
|
|
|
roadSum = gpsMapLine[PathPoint]->roadSum;
|