|
@@ -597,7 +597,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
iv::Point2D pt = iv::decition::Coordinate_Transfer(now_gps_ins.gps_x,now_gps_ins.gps_y,aim_gps_ins);
|
|
|
iv::Point2D ptfar = iv::decition::Coordinate_Transfer(Compute00().farTpoint.gps_x,Compute00().farTpoint.gps_y,aim_gps_ins);
|
|
|
double xx = pt.y - ptfar.y;
|
|
|
- if((((angdis<3)||(angdis>357)))||(xx<(-0.3)))
|
|
|
+ if((((angdis<3)||(angdis>357)))||(xx<(-0.5)))
|
|
|
// if((((angdis<4)||(angdis>356)))&&(dis<2.0))
|
|
|
{
|
|
|
vehState = reverseDirect;
|
|
@@ -731,7 +731,8 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
Point2D pt1 = Coordinate_Transfer(now_gps_ins.gps_x,now_gps_ins.gps_y, aim_gps_ins);
|
|
|
Point2D pt2 = Coordinate_Transfer(Compute00().dTpoint0.gps_x,Compute00().dTpoint0.gps_y, aim_gps_ins);
|
|
|
double xx= (pt1.y-pt2.y);
|
|
|
- if(xx < 0.1) //(dis<2.0)
|
|
|
+ double fsd = 0.6* secSpeed * secSpeed/(2*1.5);
|
|
|
+ if((xx < 0.01) ||(xx<fsd))//(dis<2.0)
|
|
|
{
|
|
|
vehState = dRever1;
|
|
|
if(Compute00().mSideParkType == SideParkType::TwoStep)vehState = dRever4;
|