Преглед на файлове

add angle limit for laneline decition

liyupeng преди 2 години
родител
ревизия
4164430516
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      src/decition/laneline_decition_brain_sf_changan_shenlan/decition/decide_from_laneline.cpp

+ 8 - 0
src/decition/laneline_decition_brain_sf_changan_shenlan/decition/decide_from_laneline.cpp

@@ -371,6 +371,14 @@ double iv::decition::DecideFromLaneline::limitAngle(double speed, double angle)
             preAngle = -15;
         }
     }
+    if(preAngle > 400)
+    {
+        preAngle = 400;
+    }
+    if(preAngle < -400)
+    {
+        preAngle = -400;
+    }
     return preAngle;
 }