|
@@ -184,7 +184,6 @@ std::vector<double> lastDistanceVector(roadSum, -1);
|
|
|
|
|
|
bool qiedianCount = false;
|
|
bool qiedianCount = false;
|
|
//日常展示
|
|
//日常展示
|
|
-static int sensor_update=0;
|
|
|
|
|
|
|
|
iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_gps_ins,
|
|
iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_gps_ins,
|
|
const std::vector<GPSData> gpsMapLine,
|
|
const std::vector<GPSData> gpsMapLine,
|
|
@@ -234,11 +233,7 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
DecideGps00::minDis,
|
|
DecideGps00::minDis,
|
|
DecideGps00::maxAngle);
|
|
DecideGps00::maxAngle);
|
|
DecideGps00::lastGpsIndex = PathPoint;
|
|
DecideGps00::lastGpsIndex = PathPoint;
|
|
- if(sensor_update==0)
|
|
|
|
- {
|
|
|
|
- adjuseGpsLidarPosition();
|
|
|
|
- sensor_update=1;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if(ServiceCarStatus.speed_control==true){
|
|
if(ServiceCarStatus.speed_control==true){
|
|
Compute00().getDesiredSpeed(gpsMapLine); //add by zj
|
|
Compute00().getDesiredSpeed(gpsMapLine); //add by zj
|
|
}
|
|
}
|
|
@@ -3752,15 +3747,7 @@ float iv::decition::DecideGps00::computeTrafficSpeedLimt(float trafficDis){
|
|
return limit;
|
|
return limit;
|
|
}
|
|
}
|
|
|
|
|
|
-void iv::decition::DecideGps00::adjuseGpsLidarPosition(){
|
|
|
|
|
|
|
|
- ServiceCarStatus.msysparam.lidarGpsXiuzheng -= ServiceCarStatus.msysparam.gpsOffset_y;
|
|
|
|
- ServiceCarStatus.msysparam.radarGpsXiuzheng -= ServiceCarStatus.msysparam.gpsOffset_y;
|
|
|
|
- ServiceCarStatus.msysparam.rearRadarGpsXiuzheng += ServiceCarStatus.msysparam.gpsOffset_y;
|
|
|
|
- ServiceCarStatus.msysparam.rearLidarGpsXiuzheng += ServiceCarStatus.msysparam.gpsOffset_y;
|
|
|
|
- ServiceCarStatus.msysparam.frontGpsXiuzheng -= ServiceCarStatus.msysparam.gpsOffset_y;
|
|
|
|
- ServiceCarStatus.msysparam.rearGpsXiuzheng += ServiceCarStatus.msysparam.gpsOffset_y;
|
|
|
|
-}
|
|
|
|
|
|
|
|
bool iv::decition::DecideGps00::adjuseultra(){
|
|
bool iv::decition::DecideGps00::adjuseultra(){
|
|
bool front=false,back=false,left=false,right=false;
|
|
bool front=false,back=false,left=false,right=false;
|