Browse Source

modify final brake

zhangjia 3 years ago
parent
commit
9f0d879005
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/decition/decition_brain_sf/decition/decide_gps_00.cpp

+ 2 - 2
src/decition/decition_brain_sf/decition/decide_gps_00.cpp

@@ -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){