Commit bd0c7b02 authored by liyuanhong's avatar liyuanhong

增加了修改OBD车速的代码

parent 978331ca
...@@ -301,6 +301,7 @@ class AutoCarTimerService(): ...@@ -301,6 +301,7 @@ class AutoCarTimerService():
gpsObj.setLongitude(longtitude) gpsObj.setLongitude(longtitude)
gpsObj.setDirectionAngle(self.getDirAngle()) gpsObj.setDirectionAngle(self.getDirAngle())
gpsObj.setSpeed(self.carSpeed) gpsObj.setSpeed(self.carSpeed)
gpsObj.setOBDSpeed(self.carSpeed)
timeS = int(time.time()) - 8 * 3600 timeS = int(time.time()) - 8 * 3600
timeArray = time.localtime(timeS) timeArray = time.localtime(timeS)
UTCTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray) UTCTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
...@@ -315,6 +316,7 @@ class AutoCarTimerService(): ...@@ -315,6 +316,7 @@ class AutoCarTimerService():
gpsObj.setLongitude(longtitude) gpsObj.setLongitude(longtitude)
gpsObj.setDirectionAngle(self.getDirAngle()) gpsObj.setDirectionAngle(self.getDirAngle())
gpsObj.setSpeed(self.carSpeed) gpsObj.setSpeed(self.carSpeed)
gpsObj.setOBDSpeed(self.carSpeed)
timeS = int(time.time()) - 8 * 3600 timeS = int(time.time()) - 8 * 3600
timeArray = time.localtime(timeS) timeArray = time.localtime(timeS)
UTCTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray) UTCTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
......
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