Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
autoCar
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
autoCar
Commits
3d253303
Commit
3d253303
authored
Apr 26, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了获取gps轨迹点数据越界问题
parent
d3c9a7c6
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
222 additions
and
172 deletions
+222
-172
lib/socket/service/AutoCarService.py
lib/socket/service/AutoCarService.py
+1
-0
result.txt
result.txt
+219
-170
start.py
start.py
+2
-2
No files found.
lib/socket/service/AutoCarService.py
View file @
3d253303
...
...
@@ -134,6 +134,7 @@ class AutoCarService():
print
(
info
)
self
.
writeToFile
(
"result.txt"
,
info
+
"
\n
"
,
1
)
elif
self
.
gpsLineIndex
==
len
(
self
.
gpsLine
):
self
.
gpsLineIndex
=
self
.
gpsLineIndex
-
1
# self.fireOff()
self
.
stopTravelService
()
info
=
self
.
getCurTime
()
+
" gps轨迹跑完,自动停止行驶!"
...
...
result.txt
View file @
3d253303
This diff is collapsed.
Click to expand it.
start.py
View file @
3d253303
...
...
@@ -10,8 +10,8 @@ def startSimulaterService():
autoCarObj
.
setCarId
(
"M202003060520"
)
#设置车机号
autoCarObj
.
setSendDur
(
1
)
# 设置发送消息的间隔时间
autoCarObj
.
setTimeout
(
30
)
# 设置socket超时时间
autoCarObj
.
setChangeGPSLineTime
(
1
*
2
*
60
)
# 设置跑完一条轨迹后,进入下一条轨迹的时间(请设置至少大于4分钟的时间)
autoCarObj
.
setServiceTime
(
1
*
5
*
60
)
# 设置整个服务的持续时间
autoCarObj
.
setChangeGPSLineTime
(
1
*
3
*
60
)
# 设置跑完一条轨迹后,进入下一条轨迹的时间(请设置至少大于4分钟的时间)
autoCarObj
.
setServiceTime
(
1
*
6
*
60
)
# 设置整个服务的持续时间
autoCarObj
.
setOilExpend
(
10
)
# 设置1L 油跑多少公里
autoCarObj
.
setSpeed
(
80
)
#设置车速,每小时多少公里
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment