Sfoglia il codice sorgente

Merge remote-tracking branch 'gogs/master'

LingxinMeng 10 mesi fa
parent
commit
b9039aa033
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      trigger/pjisuv/tpperception/TTC/main/TTC.go

+ 1 - 1
trigger/pjisuv/tpperception/TTC/main/TTC.go

@@ -37,7 +37,7 @@ func Label() string {
 
 func Rule(data *pjisuv_msgs.PerceptionObjects, param entity.PjisuvParam) string {
 	for _, obj := range data.Objs {
-		if math.Abs(float64(obj.Y)) <= 2 && obj.X >= 6 {
+		if math.Abs(float64(obj.Y)) <= 2 && obj.X >= 6 && param.VelocityYOfCicvLocation > 1 {
 			ttc := -((float64(obj.X) - 4) / (float64(obj.Vxrel) + 0.001))
 			if ttc >= 0 && ttc <= 3 {
 				return "TTC"