Commit fe3debc6 authored by garciay's avatar garciay
Browse files

Add external function fx_getDSecond()

parent ebd44bfd
...@@ -532,7 +532,9 @@ module ItsRSUsSimulator_Functions { ...@@ -532,7 +532,9 @@ module ItsRSUsSimulator_Functions {
// 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 (omit) MovementList v_states := vc_states[vc_signalGroupParmId][v_intersection]; var template (omit) MovementList v_states := vc_states[vc_signalGroupParmId][v_intersection];
v_spatem.spat.intersections[v_intersection].states[0] := v_states[vc_spatemStatesId]; v_spatem.spat.intersections[v_intersection].states := { v_states[vc_spatemStatesId] };
v_spatem.spat.intersections[v_intersection].moy := f_getMinuteOfTheYear();
v_spatem.spat.intersections[v_intersection].timeStamp := f_getDSecond();
select (vc_spatemStatesId) { select (vc_spatemStatesId) {
case (0) { case (0) {
v_spatem.spat.intersections[v_intersection].states[1] := v_states[1]; v_spatem.spat.intersections[v_intersection].states[1] := v_states[1];
......
...@@ -574,12 +574,12 @@ module ItsRSUsSimulator_Pics { ...@@ -574,12 +574,12 @@ module ItsRSUsSimulator_Pics {
modulepar PosConfidenceEllipse PICS_DENM_POSITION_CONFIDENCE_ELLIPSE := { modulepar PosConfidenceEllipse PICS_DENM_POSITION_CONFIDENCE_ELLIPSE := {
semiMajorConfidence := 100, semiMajorConfidence := 100,
semiMinorConfidence := 100, semiMinorConfidence := 100,
semiMajorOrientation := HeadingValue_wgs84North_ semiMajorOrientation := 0
} // End of PICS_DENM_POSITION_CONFIDENCE_ELLIPSE } // End of PICS_DENM_POSITION_CONFIDENCE_ELLIPSE
modulepar Altitude PICS_DENM_ALTITUDE := { modulepar Altitude PICS_DENM_ALTITUDE := {
altitudeValue := AltitudeValue_referenceEllipsoidSurface_, altitudeValue := AltitudeValue_referenceEllipsoidSurface_,
altitudeConfidence := unavailable altitudeConfidence := alt_000_01
} // End of PICS_DENM_ALTITUDE } // End of PICS_DENM_ALTITUDE
/** /**
...@@ -3624,8 +3624,8 @@ module ItsRSUsSimulator_Pics { ...@@ -3624,8 +3624,8 @@ module ItsRSUsSimulator_Pics {
id := PICS_Z1_M1_SL_IDX, id := PICS_Z1_M1_SL_IDX,
revision := 0, revision := 0,
status := int2bit(0, 16), status := int2bit(0, 16),
moy := omit, moy := 0, // To be updated in real-time
timeStamp := omit, timeStamp := 0, // To be updated in real-time
enabledLanes := omit, enabledLanes := omit,
states := { states := {
{ {
...@@ -3714,8 +3714,8 @@ module ItsRSUsSimulator_Pics { ...@@ -3714,8 +3714,8 @@ module ItsRSUsSimulator_Pics {
id := PICS_Z2_M1_SL_IDX, id := PICS_Z2_M1_SL_IDX,
revision := 0, revision := 0,
status := int2bit(0, 16), status := int2bit(0, 16),
moy := omit, moy := 0, // To be updated in real-time
timeStamp := omit, timeStamp := 0, // To be updated in real-time
enabledLanes := omit, enabledLanes := omit,
states := { states := {
{ {
...@@ -3804,8 +3804,8 @@ module ItsRSUsSimulator_Pics { ...@@ -3804,8 +3804,8 @@ module ItsRSUsSimulator_Pics {
id := PICS_Z3_M1_SL_IDX, id := PICS_Z3_M1_SL_IDX,
revision := 0, revision := 0,
status := int2bit(0, 16), status := int2bit(0, 16),
moy := omit, moy := 0, // To be updated in real-time
timeStamp := omit, timeStamp := 0, // To be updated in real-time
enabledLanes := omit, enabledLanes := omit,
states := { states := {
{ {
...@@ -3894,8 +3894,8 @@ module ItsRSUsSimulator_Pics { ...@@ -3894,8 +3894,8 @@ module ItsRSUsSimulator_Pics {
id := PICS_Z4_M1_SL_IDX, id := PICS_Z4_M1_SL_IDX,
revision := 0, revision := 0,
status := int2bit(0, 16), status := int2bit(0, 16),
moy := omit, moy := 0, // To be updated in real-time
timeStamp := omit, timeStamp := 0, // To be updated in real-time
enabledLanes := omit, enabledLanes := omit,
states := { states := {
{ {
...@@ -3984,8 +3984,8 @@ module ItsRSUsSimulator_Pics { ...@@ -3984,8 +3984,8 @@ module ItsRSUsSimulator_Pics {
id := PICS_Z5_M1_SL_IDX, id := PICS_Z5_M1_SL_IDX,
revision := 0, revision := 0,
status := int2bit(0, 16), status := int2bit(0, 16),
moy := omit, moy := 0, // To be updated in real-time
timeStamp := omit, timeStamp := 0, // To be updated in real-time
enabledLanes := omit, enabledLanes := omit,
states := { states := {
{ {
...@@ -4074,8 +4074,8 @@ module ItsRSUsSimulator_Pics { ...@@ -4074,8 +4074,8 @@ module ItsRSUsSimulator_Pics {
id := PICS_Z6_M1_SL_IDX, id := PICS_Z6_M1_SL_IDX,
revision := 0, revision := 0,
status := int2bit(0, 16), status := int2bit(0, 16),
moy := omit, moy := 0, // To be updated in real-time
timeStamp := omit, timeStamp := 0, // To be updated in real-time
enabledLanes := omit, enabledLanes := omit,
states := { states := {
{ {
......
...@@ -34,7 +34,7 @@ module ItsRSUsSimulator_Pixits { ...@@ -34,7 +34,7 @@ module ItsRSUsSimulator_Pixits {
* UC9 (CAM only): PX_ETSI_USE_CASE_ID := 9 !! PX_RSU_ID 5 * UC9 (CAM only): PX_ETSI_USE_CASE_ID := 9 !! PX_RSU_ID 5
* @remark LibItsGeoNetworking_Pixits.PX_GN_UPPER_LAYER := e_btpB * @remark LibItsGeoNetworking_Pixits.PX_GN_UPPER_LAYER := e_btpB
*/ */
modulepar integer PX_ETSI_USE_CASE_ID := 6; modulepar integer PX_ETSI_USE_CASE_ID := 1;
/** /**
* @desc Indicate which zone to simulate * @desc Indicate which zone to simulate
...@@ -46,7 +46,7 @@ module ItsRSUsSimulator_Pixits { ...@@ -46,7 +46,7 @@ module ItsRSUsSimulator_Pixits {
modulepar boolean PICS_GENERATE_CAM := true; modulepar boolean PICS_GENERATE_CAM := true;
modulepar boolean PICS_GENERATE_DENM := false; modulepar boolean PICS_GENERATE_DENM := true;
modulepar boolean PICS_GENERATE_IVIM := false; modulepar boolean PICS_GENERATE_IVIM := false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment