Commit fe3debc6 authored by garciay's avatar garciay
Browse files

Add external function fx_getDSecond()

parent ebd44bfd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -532,7 +532,9 @@ module ItsRSUsSimulator_Functions {
        // Rebuild SPATEM message
        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];
            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) {
                case (0) {
                    v_spatem.spat.intersections[v_intersection].states[1] := v_states[1];
+14 −14
Original line number Diff line number Diff line
@@ -574,12 +574,12 @@ module ItsRSUsSimulator_Pics {
            modulepar PosConfidenceEllipse PICS_DENM_POSITION_CONFIDENCE_ELLIPSE := {
                semiMajorConfidence   := 100,
                semiMinorConfidence   := 100,
                semiMajorOrientation  := HeadingValue_wgs84North_
                semiMajorOrientation  := 0
            } // End of PICS_DENM_POSITION_CONFIDENCE_ELLIPSE
            
            modulepar Altitude PICS_DENM_ALTITUDE := {
                altitudeValue := AltitudeValue_referenceEllipsoidSurface_,
                altitudeConfidence := unavailable
                altitudeConfidence := alt_000_01
            } // End of PICS_DENM_ALTITUDE
            
            /**
@@ -3624,8 +3624,8 @@ module ItsRSUsSimulator_Pics {
                        id                                  := PICS_Z1_M1_SL_IDX,
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        moy                                 := 0, // To be updated in real-time
                        timeStamp                           := 0, // To be updated in real-time
                        enabledLanes                        := omit,  
                        states := {
                            {
@@ -3714,8 +3714,8 @@ module ItsRSUsSimulator_Pics {
                        id                                  := PICS_Z2_M1_SL_IDX,
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        moy                                 := 0, // To be updated in real-time
                        timeStamp                           := 0, // To be updated in real-time
                        enabledLanes                        := omit,  
                        states := {
                            {
@@ -3804,8 +3804,8 @@ module ItsRSUsSimulator_Pics {
                        id                                  := PICS_Z3_M1_SL_IDX,
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        moy                                 := 0, // To be updated in real-time
                        timeStamp                           := 0, // To be updated in real-time
                        enabledLanes                        := omit,  
                        states := {
                            {
@@ -3894,8 +3894,8 @@ module ItsRSUsSimulator_Pics {
                        id                                  := PICS_Z4_M1_SL_IDX,
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        moy                                 := 0, // To be updated in real-time
                        timeStamp                           := 0, // To be updated in real-time
                        enabledLanes                        := omit,  
                        states := {
                            {
@@ -3984,8 +3984,8 @@ module ItsRSUsSimulator_Pics {
                        id                                  := PICS_Z5_M1_SL_IDX,
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        moy                                 := 0, // To be updated in real-time
                        timeStamp                           := 0, // To be updated in real-time
                        enabledLanes                        := omit,  
                        states := {
                            {
@@ -4074,8 +4074,8 @@ module ItsRSUsSimulator_Pics {
                        id                                  := PICS_Z6_M1_SL_IDX,
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        moy                                 := 0, // To be updated in real-time
                        timeStamp                           := 0, // To be updated in real-time
                        enabledLanes                        := omit,  
                        states := {
                            {
+2 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ module ItsRSUsSimulator_Pixits {
     *         UC9 (CAM only):          PX_ETSI_USE_CASE_ID := 9 !! PX_RSU_ID 5
     * @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
@@ -46,7 +46,7 @@ module ItsRSUsSimulator_Pixits {
    
    modulepar boolean PICS_GENERATE_CAM      := true;
    
    modulepar boolean PICS_GENERATE_DENM     := false;
    modulepar boolean PICS_GENERATE_DENM     := true;
    
    modulepar boolean PICS_GENERATE_IVIM     := false;