LingxinMeng hai 10 meses
pai
achega
dcac2b427b

+ 3 - 1
trigger/pjisuv/cicv_location/OverSpeed/main/OverSpeed.go

@@ -14,7 +14,9 @@ func Label() string {
 }
 
 func Rule(data *pjisuv_msgs.PerceptionLocalization) string {
-	if math.Pow(math.Pow(data.VelocityX, 2)+math.Pow(data.VelocityY, 2), 0.5)*3.6 >= 65 {
+	//threshold := 65.0
+	threshold := 9999.0
+	if math.Pow(math.Pow(data.VelocityX, 2)+math.Pow(data.VelocityY, 2), 0.5)*3.6 >= threshold {
 		return "OverSpeed"
 	} else {
 		return ""

+ 13 - 12
trigger/pjisuv/fault_info/ErrorCode/main/ErrorCode.go

@@ -15,19 +15,20 @@ func Label() string {
 }
 
 func Rule(data *pjisuv_msgs.FaultVec) string {
-	errorcodeStr := ""
-	faultFlag := false
-	faultList := data.InfoVec
-	if len(faultList) > 0 {
-		for _, fault := range faultList {
-			errorcodeStr = errorcodeStr + toString(fault.ErrorCode)
-			faultFlag = true
-		}
-	}
-	if faultFlag {
-		return "errorcode"
-	}
 	return ""
+	//errorcodeStr := ""
+	//faultFlag := false
+	//faultList := data.InfoVec
+	//if len(faultList) > 0 {
+	//	for _, fault := range faultList {
+	//		errorcodeStr = errorcodeStr + toString(fault.ErrorCode)
+	//		faultFlag = true
+	//	}
+	//}
+	//if faultFlag {
+	//	return "errorcode"
+	//}
+	//return ""
 }
 
 func toString(value interface{}) string {