@@ -39,13 +39,13 @@ void iv::perception::LiDARSensor::updataFusion(std::shared_ptr<iv::fusion::fusio
fusion_obs.swap(mfusion_obs_);
mMutex.unlock();
- ++count ;
- if(count/epoch ==0 )
- {
- count = 0;
+// ++count ;
+// if(count/epoch ==0 )
+// {
+// count = 0;
- }
+// }
@@ -3864,7 +3864,7 @@ float iv::decition::DecideGps00::computeAvoidX(int roadAim,int roadOri,GPSData g
x= (roadOri-roadAim)*gps->mfRoadWidth;
}else{
int num=roadOri-roadAim;
- switch (num%3) {
+ switch (abs(num%3)) {
case 0:
x=(num/3)*gps->mfRoadWidth;
break;
@@ -3474,7 +3474,7 @@ float iv::decition::DecideGps00::computeAvoidX(int roadAim,int roadOri,GPSData g
+ switch (abs(num)%3) {