Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
/**
* @author ETSI / STF405 / STF449 / STF484 / STF517
* @version $Url: https://oldforge.etsi.org/svn/LibIts/tags/20170222_STF527_Final/ttcn/CAM/LibItsCam_Templates.ttcn $
* $Id: LibItsCam_Templates.ttcn 1318 2017-01-26 10:20:53Z filatov $
* @desc Module containing base template definitions for CAM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module LibItsCam_Templates {
// LibCommon
import from LibCommon_BasicTypesAndValues all;
import from LibCommon_DataStrings all;
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from CAM_PDU_Descriptions language "ASN.1:1997" all;
// import from DENM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsCommon
import from LibItsCommon_Functions all;
import from LibItsCommon_TypesAndValues all;
import from LibItsCommon_ASN1_NamedNumbers all;
// LibItsCam
import from LibItsCam_TestSystem all;
import from LibItsCam_TypesAndValues all;
group camPrimitives {
/**
* @desc Receive template for CAM Message (CamPort Primitive)
* @param p_camMsg Expected CAM Message
*/
template CamInd mw_camInd (
in template (present) CAM p_camMsg
) := {
msgIn := p_camMsg,
recvTime := ?,
gnNextHeader := *,
gnHeaderType := *,
gnHeaderSubtype := *,
gnLifetime := *,
gnTrafficClass := *,
btpDestinationPort := *,
btpInfo := *,
ssp := *,
its_aid := *
};
/**
* @desc Receive template for CAM Message (CamPort Primitive)
* @param p_camMsg Expected CAM Message
* @param p_gnNextHeader GN next header value
* @param p_gnHeaderType GN header type value
* @param p_gnHeaderSubtype GN header subtype value
* @param p_gnLifetime GN packet lifetime value (ms)
* @param p_gnTrafficClass GN traffic class value
*/
template CamInd mw_camIndWithGnParameters (
in template (present) CAM p_camMsg,
in template UInt8 p_gnNextHeader := *,
in template UInt8 p_gnHeaderType := *,
in template UInt8 p_gnHeaderSubtype := *,
in template UInt32 p_gnLifetime := *,
in template UInt8 p_gnTrafficClass := *
) modifies mw_camInd := {
gnNextHeader := p_gnNextHeader,
gnHeaderType := p_gnHeaderType,
gnHeaderSubtype := p_gnHeaderSubtype,
gnLifetime := p_gnLifetime,
gnTrafficClass := p_gnTrafficClass
};
/**
* @desc Receive template for CA Message (DenmPort Primitive)
* @param p_caMsg The expected CA Message
* @param p_ssp SSP security parameter
* @param p_its_aid ITS-AID value
*/
template CamInd mw_camIndWithSecurityParameters(
template (present) CAM p_camMsg,
template Bit256 p_ssp := *,
template UInt32 p_its_aid := c_its_aid_CAM
) modifies mw_camInd := {
ssp := p_ssp,
its_aid := p_its_aid
};
/**
* @desc Receive template for CAM Message (CamPort Primitive)
* @param p_camMsg Expected CAM Message
* @param p_btpDestinationPort BTP destination port value
* @param p_btpInfo BTP destination port info value (if BTP-B) or BTP source port value (if BTP-A)
*/
template CamInd mw_camIndWithBtpParameters (
in template (present) CAM p_camMsg,
in template UInt16 p_btpDestinationPort := *,
in template UInt16 p_btpInfo := *
) modifies mw_camInd := {
btpDestinationPort := p_btpDestinationPort,
btpInfo := p_btpInfo
};
/**
* @desc Send template for CAM Message (CamPort Primitive)
* @param p_camMsg CAM Message to be received
*/
template (value) CamReq m_camReq (
in template (value) CAM p_camMsg
) := {
msgOut := p_camMsg
};
group camUtPrimitives {
/**
* @desc Initializes the CAM IUT.
*/
template (value) UtCamInitialize m_camInitialize := {
hashedId8 := '0000000000000000'O
}
/**
* @desc Change the curvature
* @param p_offset The curvature value offset
*/
template (value) UtCamTrigger m_changeCurvature(CurvatureValue p_changeCurvature) := {
changeCurvature := p_changeCurvature
}
/**
* @desc Change the speed
* @param p_offset The speed value offset
*/
template (value) UtCamTrigger m_changeSpeed(Int16 p_changeSpeed) := {
changeSpeed := p_changeSpeed
}
/**
* @desc Set the acceleration control status
* @param p_status The status to set
*/
template (value) UtCamTrigger m_setAccelerationControlStatus(AccelerationControl p_status) := {
setAccelerationControlStatus := p_status
}
/**
* @desc Set the exterior lights status
* @param p_status The status to set
*/
template (value) UtCamTrigger m_setExteriorLightsStatus(ExteriorLights p_status) := {
setExteriorLightsStatus := p_status
}
/**
* @desc Change the heading
* @param p_offset The heading value offset
*/
template (value) UtCamTrigger m_changeHeading(HeadingValue p_changeHeading) := {
changeHeading := p_changeHeading
}
/**
* @desc Set the drive direction
* @param p_driveDirection The drive direction
*/
template (value) UtCamTrigger m_setDriveDirection(DriveDirection p_driveDirection) := {
setDriveDirection := p_driveDirection
}
/**
* @desc Change the yaw rate
* @param p_offset The yaw rate value offset
*/
template (value) UtCamTrigger m_changeYawRate(YawRateValue p_changeYawRate) := {
changeYawRate := p_changeYawRate
}
/**
* @desc Set the vehicle role
* @param p_vehicleRole The vehicle role
*/
template (value) UtCamTrigger m_setVehicleRole(VehicleRole p_vehicleRole) := {
setVehicleRole := p_vehicleRole
}
/**
* @desc Set the dangerous good description
* @param p_dangerousGoods The dangerous good description
*/
template (value) UtCamTrigger m_setDangerousGoods(DangerousGoodsBasic p_dangerousGoods) := {
setDangerousGoods := p_dangerousGoods
}
} // end utPrimitives
} // end group Primitives
group positionTemplates {
/**
* @desc The test system reference position.
*/
template (value) ReferencePosition m_tsPosition := {
latitude := f_integer2Latitude(f_getTsLatitude()),
longitude := f_integer2Longitude(f_getTsLongitude()),
positionConfidenceEllipse := {
semiMajorConfidence := LibItsCommon_ASN1_NamedNumbers.SemiAxisLength_oneCentimeter_,
semiMinorConfidence := LibItsCommon_ASN1_NamedNumbers.SemiAxisLength_oneCentimeter_,
semiMajorOrientation := LibItsCommon_ASN1_NamedNumbers.HeadingValue_wgs84North_
},
altitude := {
altitudeValue := LibItsCommon_ASN1_NamedNumbers.AltitudeValue_referenceEllipsoidSurface_,
altitudeConfidence := unavailable
}
}
/**
* @desc Reference position for given latitude and longitude.
*/
template (present) ReferencePosition mw_refPositionWithDelta(
in ReferencePosition p_origRefPos,
in integer p_jitter := 100
) := {
latitude := (p_origRefPos.latitude - p_jitter..p_origRefPos.latitude + p_jitter),
longitude := (p_origRefPos.longitude - p_jitter..p_origRefPos.longitude + p_jitter),
positionConfidenceEllipse := p_origRefPos.positionConfidenceEllipse,
altitude := p_origRefPos.altitude
}
} // end positionTemplates
/**
* @desc Default Receive template for CAM PDU
*/
template (present) CAM mw_camMsg_any := {
header := {
protocolVersion := LibItsCommon_ASN1_NamedNumbers.ItsPduHeader_protocolVersion_currentVersion_,
messageID := LibItsCommon_ASN1_NamedNumbers.ItsPduHeader_messageID_cam_,
stationID := ?
},
cam := {
generationDeltaTime := ?,
camParameters := ?
}
}
group camBasicContainer {
/**
* @desc
* Receive template for CAM PDU including basic container with
* given reference position
* @param p_referencePosition The reference position
*/
template (present) CAM mw_camMsg_BC_refPos(
in template(present) ReferencePosition p_referencePosition
) modifies mw_camMsg_any := {
cam := {
camParameters := {
basicContainer := {
stationType := ?,
referencePosition := p_referencePosition
},
highFrequencyContainer := ?,
lowFrequencyContainer := *,
specialVehicleContainer := *
}
}
}
} // end group camBasicContainer
group camHighFrequencyContainer {
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_basicVehicleContainer The including basic vehicle container
*/
template (present) CAM mw_camMsg_HF_BV(
in template(present) BasicVehicleContainerHighFrequency p_basicVehicleContainer
) modifies mw_camMsg_any := {
cam := {
camParameters := {
basicContainer := ?,
highFrequencyContainer := {
basicVehicleContainerHighFrequency := p_basicVehicleContainer
},
lowFrequencyContainer := *,
specialVehicleContainer := *
}
}
}
/**
* @desc Default Receive template for basic vehicle container in
* the high frequency container
*/
template (present) BasicVehicleContainerHighFrequency mw_HF_BV_any := {
heading := ?,
speed := ?,
driveDirection := ?,
vehicleLength := ?,
vehicleWidth := ?,
longitudinalAcceleration := ?,
curvature := ?,
curvatureCalculationMode := ?,
yawRate := ?,
accelerationControl := *,
lanePosition := *,
steeringWheelAngle := *,
lateralAcceleration := *,
verticalAcceleration := *,
performanceClass := *,
cenDsrcTollingZone := *
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_curvatureValue The curvature
*/
template(present) BasicVehicleContainerHighFrequency mw_HF_BV_curvature(
in template(present) CurvatureValue p_curvatureValue
) modifies mw_HF_BV_any :=
{
curvature := {
curvatureValue := p_curvatureValue,
curvatureConfidence := ?
}
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_accCtrl The acceleration control
*/
template(present) BasicVehicleContainerHighFrequency mw_HF_BV_accCtrl(
in template AccelerationControl p_accCtrl
) modifies mw_HF_BV_any :=
{
accelerationControl := p_accCtrl
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_headingValue The heading
*/
template(present) BasicVehicleContainerHighFrequency mw_HF_BV_heading(
in template(present) HeadingValue p_headingValue
) modifies mw_HF_BV_any :=
{
heading := {
headingValue := p_headingValue,
headingConfidence := ?
}
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_speedValue The speed
*/
template(present) BasicVehicleContainerHighFrequency mw_HF_BV_speed(
in template(present) SpeedValue p_speedValue
) modifies mw_HF_BV_any :=
{
speed := {
speedValue := p_speedValue,
speedConfidence := ?
}
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_driveDirection The drive direction
*/
template(present) BasicVehicleContainerHighFrequency mw_HF_BV_driveDirection(
in template(present) DriveDirection p_driveDirection
) modifies mw_HF_BV_any :=
{
driveDirection := p_driveDirection
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_yawRateValue The yaw rate
*/
template(present) BasicVehicleContainerHighFrequency mw_HF_BV_yawRate(
in template(present) YawRateValue p_yawRateValue
) modifies mw_HF_BV_any :=
{
yawRate := {
yawRateValue := p_yawRateValue,
yawRateConfidence := ?
}
}
} // end group camHighFrequencyContainer
group camLowFrequencyContainer {
/**
* @desc Default Receive template for CAM PDU including
* optional lowFrequencyContainer
*/
template (present) CAM mw_camMsg_LF_any modifies mw_camMsg_any := {
cam := {
camParameters := {
basicContainer := ?,
highFrequencyContainer := ?,
lowFrequencyContainer := ?,
specialVehicleContainer := *
}
}
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_basicVehicleContainer The including basic vehicle container
*/
template (present) CAM mw_camMsg_LF_BV(
in template(present) BasicVehicleContainerLowFrequency p_basicVehicleContainer := ?
) modifies mw_camMsg_any := {
cam := {
camParameters := {
basicContainer := ?,
highFrequencyContainer := ?,
lowFrequencyContainer := {
basicVehicleContainerLowFrequency := p_basicVehicleContainer
},
specialVehicleContainer := *
}
}
}
/**
* @desc Default Receive template for basic vehicle container in
* the low frequency container
*/
template (present) BasicVehicleContainerLowFrequency mw_LF_BV_any := {
vehicleRole := ?,
exteriorLights := ?,
pathHistory := ?
}
/**
* @desc
* Receive template for CAM PDU including specific basic vehicle container
* @param p_extLights The exterior lights
*/
template(present) BasicVehicleContainerLowFrequency mw_LF_BV_extLights(
in template (present) ExteriorLights p_extLights
) modifies mw_LF_BV_any :=
{
exteriorLights := p_extLights
}
} // end group camLowFrequencyContainer
group camSpecialVehicleContainer {
/**
* @desc Default Receive template for CAM PDU including
* optional specialVehicleContainer
*/
template (present) CAM mw_camMsg_SVC_any modifies mw_camMsg_any := {
cam := {
camParameters := {
basicContainer := ?,
highFrequencyContainer := ?,
lowFrequencyContainer := *,
specialVehicleContainer := ?
}
}
}
/**
* @desc Receive template for CAM PDU including optional specialVehicleContainer
* @param p_specialVehicleContainer The expected specialVehicleContainer
*/
template (present) CAM mw_camMsg_SVC(
in template (present) SpecialVehicleContainer p_specialVehicleContainer
) modifies mw_camMsg_SVC_any := {
cam := {
camParameters := {
specialVehicleContainer := p_specialVehicleContainer
}
}
}
/**
* @desc Receive template for specialVehicleContainer public transport
*/
template (present) SpecialVehicleContainer mw_publicTransport_any := {
publicTransportContainer := ?
}
/**
* @desc Receive template for specialVehicleContainer special transport
*/
template (present) SpecialVehicleContainer mw_specialTransport_any := {
specialTransportContainer := ?
}
/**
* @desc Receive template for specialVehicleContainer dangerous goods
*/
template (present) SpecialVehicleContainer mw_dangerousGoods_any := {
dangerousGoodsContainer := ?
}
/**
* @desc Receive template for specialVehicleContainer road works
*/
template (present) SpecialVehicleContainer mw_roadWorks_any := {
roadWorksContainerBasic := ?
}
/**
* @desc Receive template for specialVehicleContainer rescue
*/
template (present) SpecialVehicleContainer mw_rescue_any := {
rescueContainer := ?
}
/**
* @desc Receive template for specialVehicleContainer emergency
*/
template (present) SpecialVehicleContainer mw_emergency_any := {
emergencyContainer := ?
}
/**
* @desc Receive template for specialVehicleContainer safety car
*/
template (present) SpecialVehicleContainer mw_safetyCar_any := {
safetyCarContainer := ?
}
} //end group camSpecialVehicleContainer
group camAnyVehicle {
/**
* @desc Send template for Vehicle CAM PDU
* @param p_stationId Station ID of the source
* @param p_generationTime Timestamp of the generated message
* @param p_referencePosition Position of the sending station
*/
template (value) CAM m_camMsg_vehicle_HF_BV(
StationID p_stationId,
GenerationDeltaTime p_generationTime,
template (value) ReferencePosition p_referencePosition
) := {
header := {
protocolVersion := LibItsCommon_ASN1_NamedNumbers.ItsPduHeader_protocolVersion_currentVersion_,
messageID := LibItsCommon_ASN1_NamedNumbers.ItsPduHeader_messageID_cam_,
stationID := p_stationId
},
cam := {
generationDeltaTime := p_generationTime,
camParameters := {
basicContainer := {
stationType := LibItsCommon_ASN1_NamedNumbers.StationType_passengerCar_,
referencePosition := p_referencePosition
},
highFrequencyContainer := {
basicVehicleContainerHighFrequency := {
heading := {
headingValue := LibItsCommon_ASN1_NamedNumbers.HeadingValue_wgs84North_, //0
headingConfidence := 10
},
speed := {
speedValue := 45,
speedConfidence := 5
},
driveDirection := forward,
vehicleLength := {
vehicleLengthValue := 50,
vehicleLengthConfidenceIndication := noTrailerPresent
},
vehicleWidth := 21,
longitudinalAcceleration := {
longitudinalAccelerationValue := LibItsCommon_ASN1_NamedNumbers.LongitudinalAccelerationValue_unavailable_,
longitudinalAccelerationConfidence := LibItsCommon_ASN1_NamedNumbers.AccelerationConfidence_unavailable_
},
curvature := {
curvatureValue := LibItsCommon_ASN1_NamedNumbers.CurvatureValue_straight_,
curvatureConfidence := unavailable
},
curvatureCalculationMode := yawRateUsed,
yawRate := {
yawRateValue := LibItsCommon_ASN1_NamedNumbers.YawRateValue_straight_,
yawRateConfidence := unavailable
},
accelerationControl := omit,
lanePosition := omit,
steeringWheelAngle := omit,
lateralAcceleration := omit,
verticalAcceleration := omit,
performanceClass := omit,
cenDsrcTollingZone := omit
}
},
lowFrequencyContainer := omit,
specialVehicleContainer := omit
}
}
}; // End of template m_camMsg_vehicle_HF_BV
/**
* @desc Send template for Vehicle CAM PDU
* @param p_stationId Station ID of the source
* @param p_generationTime Timestamp of the generated message
* @param p_referencePosition Position of the sending station
*/
template (value) CAM m_camMsg_vehicle(
StationID p_stationId,
GenerationDeltaTime p_generationTime,
template (value) ReferencePosition p_referencePosition
) modifies m_camMsg_vehicle_HF_BV := {
cam := {
camParameters := {
lowFrequencyContainer := {
basicVehicleContainerLowFrequency := {
vehicleRole := default_,
exteriorLights := LibItsCommon_ASN1_NamedNumbers.ExteriorLights_daytimeRunningLightsOn_,
pathHistory := {}
}
}
}
}
};
template (value) CAM m_camMsg_publicTransport(
StationID p_stationId,
GenerationDeltaTime p_generationTime,
template (value) ReferencePosition p_referencePosition
) modifies m_camMsg_vehicle := {
cam := {
camParameters := {
lowFrequencyContainer := {
basicVehicleContainerLowFrequency := {
vehicleRole := publicTransport
}
},
specialVehicleContainer := {
publicTransportContainer := {
embarkationStatus := true,
ptActivation := omit
}
}
}
}
};
template (value) CAM m_camMsg_specialTransport(
StationID p_stationId,
GenerationDeltaTime p_generationTime,
template (value) ReferencePosition p_referencePosition
) modifies m_camMsg_vehicle := {
cam := {
camParameters := {
lowFrequencyContainer := {
basicVehicleContainerLowFrequency := {
vehicleRole := specialTransport
}
},
specialVehicleContainer := {
specialTransportContainer := {
specialTransportType := '1000'B/* length(4)*/, // heavyLoad
lightBarSirenInUse := '11'B/* length(2)*/ // siren and lightBar
}
}
}
}
};
} // end camAnyVehicle
group camAccelerationControlTemplates {
/**
* @desc Receive template for acceleration control with brake padel active on
*/
template AccelerationControl mw_brakePedalActive_On := '1*'B length(7);
/**
* @desc Receive template for acceleration control with brake padel active off
*/
template AccelerationControl mw_brakePedalActive_Off := '0*'B length(7);
/**
* @desc Receive template for acceleration control with gas padel active on
*/
template AccelerationControl mw_gasPedalActive_On := '?1*'B length(7);
/**
* @desc Receive template for acceleration control with gas padel active off
*/
template AccelerationControl mw_gasPedalActive_Off := '?0*'B length(7);
/**
* @desc Receive template for acceleration control with emergency brake active on
*/
template AccelerationControl mw_emergencyBrakeActive_On := '??1*'B length(7);
/**
* @desc Receive template for acceleration control with emergency brake active off
*/
template AccelerationControl mw_emergencyBrakeActive_Off := '??0*'B length(7);
/**
* @desc Receive template for acceleration control with collision warning active on
*/
template AccelerationControl mw_collisionWarningActive_On := '???1*'B length(7);
/**
* @desc Receive template for acceleration control with collision warning active off
*/
template AccelerationControl mw_collisionWarningActive_Off := '???0*'B length(7);
/**
* @desc Receive template for acceleration control with adaptive cruise control active on
*/
template AccelerationControl mw_accActive_On := '????1*'B length(7);
/**
* @desc Receive template for acceleration control with adaptive cruise control active off
*/
template AccelerationControl mw_accActive_Off := '????0*'B length(7);
/**
* @desc Receive template for acceleration control with cruise control active on
*/
template AccelerationControl mw_cruiseControl_On := '?????1*'B length(7);
/**
* @desc Receive template for acceleration control with cruise control active off
*/
template AccelerationControl mw_cruiseControl_Off := '?????0*'B length(7);
/**
* @desc Receive template for acceleration control with speed limiter active on
*/
template AccelerationControl mw_speedLimiterActive_On := '*1'B length(7);
/**
* @desc Receive template for acceleration control with speed limiter active off
*/
template AccelerationControl mw_speedLimiterActive_Off := '*0'B length(7);
} // end group camAccelerationControlTemplates
group camExteriorLightsTemplates {
/**
* @desc Receive template for exterior lights with low beam lights off
*/
template ExteriorLights mw_lowBeamLightsOff := '0*'B length (8);
/**
* @desc Receive template for exterior lights with low beam lights on
*/
template ExteriorLights mw_lowBeamLightsOn := '1*'B length(8);
/**
* @desc Receive template for exterior lights with high beam lights off
*/
template ExteriorLights mw_highBeamLightsOff := '?0*'B length(8);
/**
* @desc Receive template for exterior lights with high beam lights on
*/
template ExteriorLights mw_highBeamLightsOn := '?1*'B length(8);
/**
* @desc Receive template for exterior lights with left turn signal off
*/
template ExteriorLights mw_leftTurnSignalOff := '??0*'B length(8);
/**
* @desc Receive template for exterior lights with left turn signal on
*/
template ExteriorLights mw_leftTurnSignalOn := '??1*'B length(8);
/**
* @desc Receive template for exterior lights with right turn signal off
*/
template ExteriorLights mw_rightTurnSignalOff := '???0*'B length(8);
/**
* @desc Receive template for exterior lights with right turn signal on
*/
template ExteriorLights mw_rightTurnSignalOn := '???1*'B length(8);
/**
* @desc Receive template for exterior lights with day time running lights off
*/
template ExteriorLights mw_daytimeRunningLightsOff := '????0*'B length(8);
/**
* @desc Receive template for exterior lights with day time running lights on
*/
template ExteriorLights mw_daytimeRunningLightsOn := '????1*'B length(8);
/**
* @desc Receive template for exterior lights with reverse light off
*/
template ExteriorLights mw_reverseLightOff := '?????0*'B length(8);
/**
* @desc Receive template for exterior lights with reverse light on
*/
template ExteriorLights mw_reverseLightOn := '?????1*'B length(8);
/**
* @desc Receive template for exterior lights with fog light off
*/
template ExteriorLights mw_fogLightOff := '??????0*'B length(8);
/**
* @desc Receive template for exterior lights with fog light on
*/
template ExteriorLights mw_fogLightOn := '??????1*'B length(8);
/**
* @desc Receive template for exterior lights with parking lights off
*/
template ExteriorLights mw_parkingLightsOff := '*0'B length(8);
/**
* @desc Receive template for exterior lights with parking lights on
*/
template ExteriorLights mw_parkingLightsOn := '*1'B length(8);
/**
* @desc Receive template for exterior lights with hazard lights on
*/
template ExteriorLights mw_hazardConditionOn := '??11*'B length(8);
} // end group exteriorLights
group camTemplateFunctions {
/**
* @desc Converts an integer to Longitude
* @param p_longitude The integer value
* @return The longitude value
*/
function f_integer2Longitude(in integer p_longitude) return Longitude {
var Longitude v_longitude := f_abs(p_longitude);
return v_longitude;
}
/**
* @desc Converts an integer to Latitude
* @param p_latitude The integer value
* @return The latitude value
*/
function f_integer2Latitude(in integer p_latitude) return Latitude {
var Latitude v_latitude := f_abs(p_latitude);
return v_latitude;
}
} // end camTemplateFunctions
} // end LibItsCam_Templates