Newer
Older
* @author ETSI / STF405
* @version $URL$
* $Id$
* @desc Module containing base template definitions for CAM
import from LibItsCam_TypesAndValues all;
import from LibIts_Interface all;
import from LibItsCam_Pixits all;
import from CAM_PDU_Descriptions language "ASN.1:1997" all;
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
group Primitives {
template CamInd mw_camInd (in template (present) CamPdu p_camMsg) := { msgIn := p_camMsg };
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
template CamReq m_camReq (in template (value) CamPdu p_camMsg) := { msgOut := p_camMsg };
group utPrimitives {
/**
* @desc Change the heading
* @param p_offset Offset to the current heading
*/
template (value) UtCamEvent m_changeHeading(Direction p_offset) := {
changeHeading := p_offset
}
/**
* @desc Change the position
* @param p_offset Offset to the current position
*/
template (value) UtCamEvent m_changePosition(integer p_offset) := {
changePosition := p_offset
}
/**
* @desc Change the speed
* @param p_offset Offset to the current position
*/
template (value) UtCamEvent m_changeSpeed(Speed p_offset) := {
changeSpeed := p_offset
}
/**
* @desc Set the crash status
* @param p_status The status to set
*/
template (value) UtCamEvent m_setCrashSignal(CrashStatus p_status) := {
setCrashSignal := p_status
}
/**
* @desc Set the dangerous goods status
* @param p_status The status to set
*/
template (value) UtCamEvent m_setDangerousGoodsStatus(DangerousGoods p_status) := {
setDangerousGoodsStatus := p_status
}
//TODO not clear which parameter type to use
/**
* @desc Set the length and width precision
* @param p_precision The precision to set
*/
template (value) UtCamEvent m_setLengthWidthPrecision(boolean p_precision) := {
setLengthWidthPrecision := p_precision
}
/**
* @desc Set the distance to the stop line
* @param p_distance The distance to set
*/
template (value) UtCamEvent m_setDistanceToStopLine(Distance p_distance) := {
setDistanceToStopLine := p_distance
}
/**
* @desc Set the turn advice
* @param p_turnAdvice The turn advice to set
*/
template (value) UtCamEvent m_setTurnAdvice(TurnAdvice p_turnAdvice) := {
setTurnAdvice := p_turnAdvice
}
/**
* @desc Change the curvature
* @param p_offset Offset to the current curvature
*/
template (value) UtCamEvent m_changeCurvature(Curvature p_offset) := {
changeCurvature := p_offset
}
/**
* @desc Set the occupancy
* @param p_occupancy The occupancy to set
*/
template (value) UtCamEvent m_setOccupancy(Occupancy p_occupancy) := {
setOccupancy := p_occupancy
}
/**
* @desc Set the door status
* @param p_status The status to set
*/
template (value) UtCamEvent m_setDoorStatus(DoorOpen p_status) := {
setDoorStatus := p_status
}
/**
* @desc Set the light bar status
* @param p_status The status to set
*/
template (value) UtCamEvent m_setLightBarStatus(SimpleSystemState p_status) := {
setLightBarStatus := p_status
}
/**
* @desc Set the sirene status
* @param p_status The status to set
*/
template (value) UtCamEvent m_setSireneStatus(SimpleSystemState p_status) := {
setSireneStatus := p_status
}
/**
* @desc Set the traffic light priority
* @param p_priority The priority to set
*/
template (value) UtCamEvent m_setTrafficLightPriority(Priority p_priority) := {
setTrafficLightPriority := p_priority
}
/**
* @desc Set the schedule deviation
* @param p_scheduleDeviation The schedule deviation to set
*/
template (value) UtCamEvent m_setScheduleDeviation(ScheduleDeviation p_scheduleDeviation) := {
setScheduleDeviation := p_scheduleDeviation
}
/**
* @desc Set the PT line description
* @param p_ptLineDescription The PT line description to set
*/
template (value) UtCamEvent m_setPtLineDescription(PTLineDescription p_ptLineDescription) := {
setPtLineDescription := p_ptLineDescription
}
/**
* @desc Set the exterior lights status
* @param p_status The status to set
*/
template (value) UtCamEvent m_setExteriorLightsStatus(ExteriorLights p_status) := {
setExteriorLightsStatus := p_status
}
/**
* @desc Check the receipt of a message at the LDM
* @param p_message The message to check
*/
template (value) UtCamEvent m_checkLdmReceipt(CamPdu p_message) := {
checkLdmReceipt := p_message
}
} // end utPrimitives
} // end group Primitives
template CamPdu mw_camMsg_any := {
header := {
protocolVersion := 0,
messageID := 0,
generationTime := ?
},
cam := {
stationID := ?,
stationCharacteristics := ?,
referencePosition := ?,
camParameters := *
}
}
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
template CamPdu mw_camMsg_anyVehicle modifies mw_camMsg_any := {
cam := {
stationCharacteristics := {?, ?, ?},
camParameters := {
vehicleCommonParameters := {
vehicleType := ?,
stationLength := ?,
stationLengthConfidence := *,
stationWidth := ?,
stationWidthConfidence := *,
vehicleSpeed := ?,
vehicleSpeedConfidence := ?,
longAcceleration := ?,
longAccelerationConfidence := ?,
accelerationControl := ?,
yawRate := ?,
yawRateConfidence := ?,
exteriorLights := ?,
turnAdvice := *,
distanceToStopLine := *,
occupancy := *,
doorOpen := *,
posConfidenceEllipse := ?,
curvature := ?,
curvatureChange := *,
curvatureConfidence := ?,
crashStatus := *,
headingConfidence := ?,
dangerousGoods := *
},
profileDependent := *
}
}
}
template CamPdu mw_camMsg_basicIRS modifies mw_camMsg_any := {
cam := {
stationCharacteristics := {false, false, false},
referencePosition := {
longitude := ?,
latitude := ?,
elevation := ?,
heading := omit,
streetName := *,
positionConfidence := omit,
elevationConfidence := omit,
roadSegmentID := *
}
}
}
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
template CamPdu m_camMsg_valid(
TimeStamp p_generationTime,
StationID p_stationID,
CoopAwareness.stationCharacteristics p_stationCharacteristics,
template (value) ReferencePosition p_referencePosition
) := {
header := {
protocolVersion := 0,
messageID := 0,
generationTime := p_generationTime
},
cam := {
stationID := p_stationID,
stationCharacteristics := p_stationCharacteristics,
referencePosition := p_referencePosition,
camParameters := omit
}
};
template CamPdu mw_camMsg_basicVehicle modifies mw_camMsg_anyVehicle := {
cam := {
stationCharacteristics := {true, false, true},
camParameters := {
profileDependent := {basicVehicle := ?}
}
}
}
template CamPdu mw_camMsg_emergencyVehicle modifies mw_camMsg_anyVehicle := {
cam := {
stationCharacteristics := {true, false, true},
camParameters := {
profileDependent := {
emergencyVehicle := {
lightBarInUse := *,
sireneInUse := *,
emergencyResponseType := ?
}
}
}
}
};
template CamPdu mw_camMsg_publicTransportVehicle modifies mw_camMsg_basicVehicle := {
cam := {
stationCharacteristics := {true, false, true},
camParameters := {
profileDependent := {
publicTransportVehicle := {
publicVehicleType := ?,
pTLineDescription := *,
scheduleDeviation := *,
trafficLightPriority := *
}
}
}
}
};
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
group exteriorLights {
template ExteriorLights m_lowBeamLightsOff := '0???????'B ;
template ExteriorLights m_lowBeamLightsOn := '1???????'B ;
template ExteriorLights m_highBeamLightsOff := '?0??????'B ;
template ExteriorLights m_highBeamLightsOn := '?1??????'B ;
template ExteriorLights m_leftTurnSignalOff := '??0?????'B ;
template ExteriorLights m_leftTurnSignalOn := '??1?????'B ;
template ExteriorLights m_rightTurnSignalOff := '???0????'B ;
template ExteriorLights m_rightTurnSignalOn := '???1????'B ;
template ExteriorLights m_automaticLightControlOff := '????0???'B ;
template ExteriorLights m_automaticLightControlOn := '????1???'B ;
template ExteriorLights m_daytimeRunningLightOff := '?????0??'B ;
template ExteriorLights m_daytimeRunningLightOn := '?????1??'B ;
template ExteriorLights m_fogLightOff := '??????0?'B ;
template ExteriorLights m_fogLightOn := '??????1?'B ;
template ExteriorLights m_parkingLightsOff := '???????0'B ;
template ExteriorLights m_parkingLightsOn := '???????1'B ;
template ExteriorLights m_hazardConditionOn := '??11????'B ;
} // end group exteriorLights