|
@@ -45,9 +45,9 @@ iv::decition::Decition iv::decition::HapoAdapter::getAdapterDeciton(GPS_INS now_
|
|
|
if(obsDistance>0 && obsDistance<10){
|
|
|
controlBrake= u*1.0; //1.5 zj-1.2
|
|
|
}
|
|
|
- if(abs(dSpeed-realSpeed)<3 &&(obsDistance>40 || obsDistance<0)&&ttc>8 && dSpeed>0 && !turn_around){
|
|
|
+ if(abs(dSpeed-realSpeed)<1 &&(obsDistance>40 || obsDistance<0)&&ttc>8 && dSpeed>0 && !turn_around){
|
|
|
controlBrake=0;
|
|
|
- controlSpeed=max(0.0,ServiceCarStatus.torque_st-10.0);
|
|
|
+ controlSpeed=max(0.0,ServiceCarStatus.torque_st-2.0);
|
|
|
}else if(abs(dSpeed-realSpeed)<3 &&(obsDistance>40 || obsDistance<0)&&ttc>8 && dSpeed>0 && turn_around
|
|
|
&& dSpeed>0 && lastBrake==0){
|
|
|
controlBrake=0;
|
|
@@ -192,13 +192,12 @@ iv::decition::Decition iv::decition::HapoAdapter::getAdapterDeciton(GPS_INS now_
|
|
|
lastTorque=(*decition)->torque;
|
|
|
|
|
|
|
|
|
-// if((*decition)->brake>0)
|
|
|
-// {
|
|
|
-
|
|
|
givlog->debug("brain_decition","brake: %f,obsDistance: %f,obsSpeed: %f,reverse_speed: %f",
|
|
|
(*decition)->brake,obsDistance,obsSpeed,reverse_speed);
|
|
|
|
|
|
-// }
|
|
|
+ givlog->debug("brain_decition","dSpeed: %f,realspeed: %f,brake: %f,torque: %f",
|
|
|
+ dSpeed,realSpeed,(*decition)->brake,(*decition)->torque);
|
|
|
+
|
|
|
|
|
|
|
|
|
|