Commit 9095ed51 authored by liyuanhong's avatar liyuanhong

M500 优化了事件发送

parent adbf5cc3
...@@ -482,7 +482,7 @@ def sendSharpSlowdownEvent(): ...@@ -482,7 +482,7 @@ def sendSharpSlowdownEvent():
msg = obj.generateEventMsg() msg = obj.generateEventMsg()
service.serviceSendMsg(msg, "急减速事件") service.serviceSendMsg(msg, "急减速事件")
service.setSn(service.getSn() + 1) service.setSn(service.getSn() + 1)
carData["event"]["threeRapid"]["allSharpSlowdownCount"] = carData["event"]["threeRapid"]["totalSharpSlowdown"] + 1 carData["event"]["threeRapid"]["totalSharpSlowdown"] = carData["event"]["threeRapid"]["totalSharpSlowdown"] + 1
service.setCarData(carData) service.setCarData(carData)
data["status"] = "200" data["status"] = "200"
data["message"] = "发送急减速事件成功!" data["message"] = "发送急减速事件成功!"
...@@ -536,7 +536,7 @@ def sendSharpTurnEvent(): ...@@ -536,7 +536,7 @@ def sendSharpTurnEvent():
msg = obj.generateEventMsg() msg = obj.generateEventMsg()
service.serviceSendMsg(msg, "急转弯事件") service.serviceSendMsg(msg, "急转弯事件")
service.setSn(service.getSn() + 1) service.setSn(service.getSn() + 1)
carData["event"]["threeRapid"]["allSharpTurn"] = carData["event"]["threeRapid"]["totalSharpTurn"] + 1 carData["event"]["threeRapid"]["totalSharpTurn"] = carData["event"]["threeRapid"]["totalSharpTurn"] + 1
service.setCarData(carData) service.setCarData(carData)
data["status"] = "200" data["status"] = "200"
data["message"] = "发送急转弯事件成功!" data["message"] = "发送急转弯事件成功!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment