|
@@ -509,7 +509,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
}else{
|
|
|
ServiceCarStatus.bocheEnable=2;
|
|
|
}
|
|
|
-
|
|
|
+//ServiceCarStatus.bocheMode=1;
|
|
|
if(ServiceCarStatus.bocheMode && vehState!=reverseCar && vehState!=reversing && vehState!=reverseCircle && vehState!=reverseDirect&& vehState!=reverseArr ){
|
|
|
|
|
|
if(abs(realspeed)>0.1){
|
|
@@ -544,7 +544,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
if (vehState == reversing)
|
|
|
{
|
|
|
double dis = GetDistance(now_gps_ins, Compute00().nearTpoint);
|
|
|
- if (dis<2.0)//0.5
|
|
|
+ if (dis<4.0)//0.5
|
|
|
{
|
|
|
vehState = reverseCircle;
|
|
|
qiedianCount = true;
|
|
@@ -557,8 +557,8 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
gps_decition->wheel_angle = 0;
|
|
|
gps_decition->speed = dSpeed;
|
|
|
obsDistance=-1;
|
|
|
- givlog->debug("decition_brainR","vehState: %d,dSpeed: %f",
|
|
|
- vehState,dSpeed);
|
|
|
+ givlog->debug("decition_brainR","vehState: %d,dSpeed: %f,dis: %f",
|
|
|
+ vehState,dSpeed,dis);
|
|
|
phaseSpeedDecition(gps_decition, secSpeed, -1, 0, now_gps_ins);
|
|
|
// gps_decition->accelerator = 0;
|
|
|
return gps_decition;
|
|
@@ -569,7 +569,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
{
|
|
|
double dis = GetDistance(now_gps_ins, Compute00().farTpoint);
|
|
|
double angdis =abs(now_gps_ins.ins_heading_angle - aim_gps_ins.ins_heading_angle);
|
|
|
- if((((angdis<5)||(angdis>355)))&&(dis<3.0))
|
|
|
+ if((((angdis<10)||(angdis>350)))&&(dis<3.0))
|
|
|
// if((((angdis<4)||(angdis>356)))&&(dis<2.0))
|
|
|
{
|
|
|
vehState = reverseDirect;
|
|
@@ -578,7 +578,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
|
|
|
}
|
|
|
else {
|
|
|
- if (qiedianCount && trumpet()<0)
|
|
|
+ if (qiedianCount && trumpet()<2000)
|
|
|
// if (qiedianCount && trumpet()<1500)
|
|
|
{
|
|
|
|
|
@@ -601,11 +601,11 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
phaseSpeedDecition(gps_decition, secSpeed, -1, 0, now_gps_ins);
|
|
|
|
|
|
}
|
|
|
- controlAng = Compute00().bocheAngle*16.5;
|
|
|
+ controlAng = Compute00().bocheAngle*19.5;
|
|
|
gps_decition->wheel_angle =controlAng*1.05;
|
|
|
|
|
|
- givlog->debug("decition_brainR","vehState: %d,controlAng: %f,dSpeed: %f",
|
|
|
- vehState,controlAng,dSpeed);
|
|
|
+ givlog->debug("decition_brainR","vehState: %d,controlAng: %f,dSpeed: %f,dis: %f,angdis: %f",
|
|
|
+ vehState,controlAng,dSpeed,dis,angdis);
|
|
|
cout<<"farTpointDistance================"<<dis<<endl;
|
|
|
|
|
|
return gps_decition;
|
|
@@ -616,8 +616,8 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
{
|
|
|
// double dis = GetDistance(now_gps_ins, aim_gps_ins);
|
|
|
Point2D pt = Coordinate_Transfer(now_gps_ins.gps_x,now_gps_ins.gps_y, aim_gps_ins);
|
|
|
-
|
|
|
- if ((pt.y)<0.5)
|
|
|
+ float pty=pt.y;
|
|
|
+ if ((pt.y)<1.5)
|
|
|
{
|
|
|
qiedianCount=true;
|
|
|
vehState=reverseArr;
|
|
@@ -650,8 +650,8 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
controlAng = 0;
|
|
|
gps_decition->wheel_angle = 0;
|
|
|
|
|
|
- givlog->debug("decition_brainR","vehState: %d,controlAng: %f",
|
|
|
- vehState,controlAng);
|
|
|
+ givlog->debug("decition_brainR","vehState: %d,controlAng: %f,pty: %f",
|
|
|
+ vehState,controlAng,pty);
|
|
|
return gps_decition;
|
|
|
}
|
|
|
}
|
|
@@ -663,7 +663,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
//
|
|
|
|
|
|
ServiceCarStatus.bocheMode=false;
|
|
|
- if (qiedianCount && trumpet()<1500)
|
|
|
+ if (qiedianCount && trumpet()<3000)
|
|
|
{
|
|
|
dSpeed=0;
|
|
|
minDecelerate=min(minDecelerate,-0.5f);
|