Commit 426bd25e authored by liyuanhong's avatar liyuanhong

修改了熄火后不断网,重新点火行驶,导致发动机转速为0的问题

parent 57a0c540
......@@ -357,6 +357,8 @@ class ProtocolSimulaterService():
#点火,发送点火事件
def fireOn(self):
self.OBDdata["engineSpeed"] = 3000
self.OBDdata["speed"] = int(self.data["travelData"]["carSpeed"])
if not os.path.exists("data/protocolTools/carData/" + self.carId + ".json"):
psdsObj = ProtocolSimulaterDataService()
data = psdsObj.genDataTemplate()
......
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