Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-platform
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
jinan
wj-datacenter-platform
Commits
f7b8bbd3
Commit
f7b8bbd3
authored
Jun 28, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] review-优化数据极值问题
parent
a572867a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
TurnTypeParseEnum.java
...n/java/net/wanji/datacenter/common/TurnTypeParseEnum.java
+1
-1
LanePeriodicDataProcessServiceImpl.java
...nter/service/impl/LanePeriodicDataProcessServiceImpl.java
+5
-1
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/common/TurnTypeParseEnum.java
View file @
f7b8bbd3
...
...
@@ -15,7 +15,7 @@ public enum TurnTypeParseEnum {
LEFT
(
"l"
,
1
,
"左转"
),
STRAIGHT
(
"s"
,
2
,
"直行"
),
RIGHT
(
"r"
,
3
,
"右转"
),
UTURN
(
"u"
,
4
,
"掉头"
),
AROUND
(
"u"
,
4
,
"掉头"
),
PERSON
(
"ped"
,
20
,
"行人"
);
private
final
String
type
;
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/LanePeriodicDataProcessServiceImpl.java
View file @
f7b8bbd3
...
...
@@ -696,7 +696,11 @@ public class LanePeriodicDataProcessServiceImpl implements DataProcessService {
greenwaveRealtimePO
.
setType
(
1
);
greenwaveRealtimePO
.
setTrafficIndex
(
trafficIndex
);
greenwaveRealtimePO
.
setSpeed
(
speedAvg
);
if
(
speedAvg
!=
0
)
{
greenwaveRealtimePO
.
setTrvalTime
((
int
)
(
greenLength
/
speedAvg
*
3.6
));
}
else
{
greenwaveRealtimePO
.
setTrvalTime
(
0
);
}
greenwaveRealtimePO
.
setStopTimes
(
stopTimeAvg
);
greenwaveRealtimePO
.
setQueueLength
(
queueLength
);
greenwaveRealtimePO
.
setCongRate
(
congRate
);
...
...
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