Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
3fdc3ff5
Commit
3fdc3ff5
authored
Jun 27, 2016
by
garciay
Browse files
STF507 Week#11: Merge GNSS support from C2C branch
parent
db1ea8e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/GeoNetworking/LibItsGeoNetworking_Functions.ttcn
View file @
3fdc3ff5
...
...
@@ -870,6 +870,14 @@ module LibItsGeoNetworking_Functions {
};
}
function
@
deterministic
f_fillTimestamp
(
inout
LongPosVector
v_vector
)
return
LongPosVector
{
if
(
v_vector
.
timestamp
==
0
)
{
v_vector
.
timestamp
:=
f_computeGnTimestamp
();
}
return
v_vector
;
}
/**
* @desc Get the position vector corresponding to a key
* @param p_positionKey Reference key of the searched position vector
...
...
@@ -885,7 +893,7 @@ module LibItsGeoNetworking_Functions {
for
(
i
:=
0
;
i
<
lengthof
(
vc_positionTable
);
i
:=
i
+
1
)
{
if
(
vc_positionTable
[
i
].
key
==
p_positionKey
)
{
v_return
:=
vc_positionTable
[
i
].
position
;
v_return
:=
f_fillTimestamp
(
vc_positionTable
[
i
].
position
)
;
}
}
...
...
@@ -1592,13 +1600,13 @@ module LibItsGeoNetworking_Functions {
v_hashedId8ToBeUsed
:=
'
FFFFFFFFFFFFFFFF
'
O
;
// Reset to unknown value, the IUT will use its own certificates
}
f_utInitializeIut
(
m_secGnInitialize
(
v_hashedId8ToBeUsed
));
return
;
}
// else, default behavior
else
{
f_utInitializeIut
(
m_gnInitialize
);
}
f_acLoadScenario
(
p_scenario
);
f_acStartScenario
();
f_utInitializeIut
(
m_gnInitialize
);
}
/**
...
...
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