|
@@ -1043,14 +1043,14 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
}
|
|
|
if(!circleMode && distoend<50){
|
|
|
double nowspeed = realspeed/3.6;
|
|
|
- if((distoend<10)||(distoend<(nowspeed*nowspeed)))
|
|
|
+ if((distoend<10)||(distoend<(nowspeed*nowspeed)+2))
|
|
|
{
|
|
|
if(distoend == 0.0)distoend = 0.09;
|
|
|
acc_end = (-1.0)*nowspeed*nowspeed/(2.0*distoend);
|
|
|
if(acc_end<(-3.0))acc_end = -3.0;
|
|
|
}
|
|
|
|
|
|
- if((distoend < 0.1)||(PathPoint>=gpsMapLine.size()-2))acc_end = -0.5;
|
|
|
+ if((distoend < 2.1)||(PathPoint>=gpsMapLine.size()-2))acc_end = -0.5;
|
|
|
}
|
|
|
}else{
|
|
|
// if(!circleMode && PathPoint>gpsMapLine.size()-brake_distance){
|