Commit 978331ca authored by liyuanhong's avatar liyuanhong

修改了修改速度,同时修改gps速度功能

parent 84f7486b
......@@ -300,6 +300,7 @@ class AutoCarTimerService():
gpsObj.setLatitude(latitude)
gpsObj.setLongitude(longtitude)
gpsObj.setDirectionAngle(self.getDirAngle())
gpsObj.setSpeed(self.carSpeed)
timeS = int(time.time()) - 8 * 3600
timeArray = time.localtime(timeS)
UTCTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
......@@ -313,6 +314,7 @@ class AutoCarTimerService():
gpsObj.setLatitude(latitude)
gpsObj.setLongitude(longtitude)
gpsObj.setDirectionAngle(self.getDirAngle())
gpsObj.setSpeed(self.carSpeed)
timeS = int(time.time()) - 8 * 3600
timeArray = time.localtime(timeS)
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