Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
45dcdf44
Commit
45dcdf44
authored
Sep 12, 2016
by
garciay
Browse files
Bug fixed in function f_prepare_spatem()
parent
4eb13ec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Functions.ttcn
View file @
45dcdf44
...
@@ -329,7 +329,7 @@ module ItsRSUsSimulator_Functions {
...
@@ -329,7 +329,7 @@ module ItsRSUsSimulator_Functions {
in
template
(
value
)
SPATEM
p_spatem
,
in
template
(
value
)
SPATEM
p_spatem
,
out
template
(
value
)
Payload
p_payload
out
template
(
value
)
Payload
p_payload
)
runs
on
ItsRSUsSimulator
{
)
runs
on
ItsRSUsSimulator
{
var
template
(
value
)
SPATEM
v_spatem
:=
p_spatem
;
// Make a copy
var
template
(
omit
)
SPATEM
v_spatem
:=
p_spatem
;
// Make a copy
var
TimeMark
v_currentTimeMark
:=
f_getCurrentTimeMark
();
var
TimeMark
v_currentTimeMark
:=
f_getCurrentTimeMark
();
if
(
vc_currentPhaseStartTime
==
36001
)
{
if
(
vc_currentPhaseStartTime
==
36001
)
{
...
@@ -347,7 +347,7 @@ module ItsRSUsSimulator_Functions {
...
@@ -347,7 +347,7 @@ module ItsRSUsSimulator_Functions {
log
(
"vc_spatemStatesId = "
,
vc_spatemStatesId
);
log
(
"vc_spatemStatesId = "
,
vc_spatemStatesId
);
// Rebuild SPATEM message
// Rebuild SPATEM message
for
(
var
integer
v_intersection
:=
0
;
v_intersection
<
lengthof
(
v_spatem
.
spat
.
intersections
);
v_intersection
:=
v_intersection
+
1
)
{
for
(
var
integer
v_intersection
:=
0
;
v_intersection
<
lengthof
(
v_spatem
.
spat
.
intersections
);
v_intersection
:=
v_intersection
+
1
)
{
var
template
(
value
)
MovementList
v_states
:=
vc_states
[
vc_signalGroupParmId
][
v_intersection
];
var
template
(
omit
)
MovementList
v_states
:=
vc_states
[
vc_signalGroupParmId
][
v_intersection
];
select
(
vc_spatemStatesId
)
{
select
(
vc_spatemStatesId
)
{
case
(
0
)
{
case
(
0
)
{
v_spatem
.
spat
.
intersections
[
v_intersection
].
states
[
0
]
:=
v_states
[
0
];
v_spatem
.
spat
.
intersections
[
v_intersection
].
states
[
0
]
:=
v_states
[
0
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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