Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
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
李远洪
new-socketemulator
Commits
c1fd94e4
Commit
c1fd94e4
authored
May 19, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
M500 模拟器增加了经纬度设置为0的功能,修复bug
parent
b7797ad1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
data/protocolTools/carData/M202003060520.json
data/protocolTools/carData/M202003060520.json
+1
-1
lib/socket/service/ProtocolSimulaterService.py
lib/socket/service/ProtocolSimulaterService.py
+7
-0
No files found.
data/protocolTools/carData/M202003060520.json
View file @
c1fd94e4
{
"time"
:
{
"dateTime"
:
"2020-05-19 11:09:47"
,
"date"
:
"2020-05-19"
,
"time"
:
"11:09:47"
},
"curDayTravel"
:
{
"todayTotalMilleage"
:
6190
,
"todayTotalOil"
:
595
,
"todayTotalTime"
:
373
,
"theMilleage"
:
83
,
"theOil"
:
8
,
"theTime"
:
5
},
"travelData"
:
{
"totalMilleage"
:
289927
,
"totalOil"
:
27442
,
"totalTime"
:
17155
},
"event"
:
{
"threeRapid"
:
{
"totalRapidlyAccelerate"
:
14
,
"totalSharpSlowdown"
:
13
,
"totalSharpTurn"
:
13
}}}
{
"time"
:
{
"dateTime"
:
"2020-05-19 11:09:47"
,
"date"
:
"2020-05-19"
,
"time"
:
"11:09:47"
},
"curDayTravel"
:
{
"todayTotalMilleage"
:
7518
,
"todayTotalOil"
:
723
,
"todayTotalTime"
:
453
,
"theMilleage"
:
1328
,
"theOil"
:
128
,
"theTime"
:
80
},
"travelData"
:
{
"totalMilleage"
:
291255
,
"totalOil"
:
27570
,
"totalTime"
:
17235
},
"event"
:
{
"threeRapid"
:
{
"totalRapidlyAccelerate"
:
14
,
"totalSharpSlowdown"
:
13
,
"totalSharpTurn"
:
13
}}}
\ No newline at end of file
\ No newline at end of file
lib/socket/service/ProtocolSimulaterService.py
View file @
c1fd94e4
...
@@ -506,6 +506,13 @@ class ProtocolSimulaterService():
...
@@ -506,6 +506,13 @@ class ProtocolSimulaterService():
gpsObj
=
GPSReport_protocol
(
DEV_ID
=
self
.
carId
,
WATER_CODE
=
self
.
sn
)
gpsObj
=
GPSReport_protocol
(
DEV_ID
=
self
.
carId
,
WATER_CODE
=
self
.
sn
)
gpsObj
.
setLatitude
(
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lat"
])
gpsObj
.
setLatitude
(
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lat"
])
gpsObj
.
setLongitude
(
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lng"
])
gpsObj
.
setLongitude
(
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lng"
])
if
self
.
lngLatIsOk
==
0
:
gpsObj
.
setLatitude
(
0
)
gpsObj
.
setLongitude
(
0
)
if
self
.
GPSValid
==
1
:
gpsObj
.
setGpsValid
(
1
)
elif
self
.
GPSValid
==
0
:
gpsObj
.
setGpsValid
(
0
)
gpsObj
.
setDirectionAngle
(
self
.
getDirAngle
())
gpsObj
.
setDirectionAngle
(
self
.
getDirAngle
())
timeS
=
int
(
time
.
time
())
-
8
*
3600
timeS
=
int
(
time
.
time
())
-
8
*
3600
timeArray
=
time
.
localtime
(
timeS
)
timeArray
=
time
.
localtime
(
timeS
)
...
...
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