agl-dbc: Add recipe
[AGL/meta-agl-demo.git] / recipes-connectivity / vss / vss-agl / agl_vss_overlay.vspec.gw-control-panel
1 # DBC mappings for vehicle and engine speeds
2
3 Vehicle.Speed:
4   datatype: float
5   type: sensor
6   dbc2vss:
7     signal: PT_VehicleAvgSpeed
8     interval_ms: 100
9
10 Vehicle.Powertrain.CombustionEngine.Speed:
11   datatype: float
12   type: sensor
13   dbc2vss:
14     signal: PT_EngineSpeed
15     interval_ms: 100
16     transform:
17       math: "floor(x+0.5)"
18
19 # DBC mappings for other signals for V2C demo
20
21 Vehicle.Body.Lights.Hazard.IsSignaling:
22   datatype: boolean
23   type: actuator
24   dbc2vss:
25     signal: PT_HazardOn
26     on_change: true
27     transform:
28       mapping:
29         - from: 0
30           to: false
31         - from: 1
32           to: true
33
34 Vehicle.Body.Lights.DirectionIndicator.Left.IsSignaling:
35   datatype: boolean
36   type: actuator
37   dbc2vss:
38     signal: PT_LeftTurnOn
39     on_change: true
40     transform:
41       mapping:
42         - from: 0
43           to: false
44         - from: 1
45           to: true
46
47 Vehicle.Body.Lights.DirectionIndicator.Right.IsSignaling:
48   datatype: boolean
49   type: actuator
50   dbc2vss:
51     signal: PT_RightTurnOn
52     on_change: true
53     transform:
54       mapping:
55         - from: 0
56           to: false
57         - from: 1
58           to: true
59
60 Vehicle.OBD.ThrottlePosition:
61   datatype: float
62   type: sensor
63   dbc2vss:
64     signal: ThrottlePosition
65     interval_ms: 100
66
67 Vehicle.Chassis.SteeringWheel.Angle:
68   datatype: int16
69   type: sensor
70   dbc2vss:
71     signal: SteeringPosition
72     interval_ms: 100
73
74 Vehicle.Chassis.Brake.PedalPosition:
75   datatype: uint8
76   type: sensor
77   dbc2vss:
78     signal: BrakePressure
79     interval_ms: 100
80     transform:
81       math: "floor(x / 19125 * 100 + 0.5)"
82
83 Vehicle.Powertrain.Transmission.SelectedGear:
84   datatype: int8
85   type: sensor
86   dbc2vss:
87     signal: Gear
88     interval_ms: 100
89
90 Vehicle.Acceleration.Lateral:
91   datatype: float
92   type: sensor
93   dbc2vss:
94     signal: AccelerationX
95     interval_ms: 100
96
97 Vehicle.Acceleration.Longitudinal:
98   datatype: float
99   type: sensor
100   dbc2vss:
101     signal: AccelerationY
102     interval_ms: 100
103
104 Vehicle.Acceleration.Vertical:
105   datatype: float
106   type: sensor
107   dbc2vss:
108     signal: AccelerationZ
109     interval_ms: 100
110
111 Vehicle.AngularVelocity.Pitch:
112   datatype: float
113   type: sensor
114   dbc2vss:
115     signal: GyroscopeX
116     interval_ms: 100
117
118 Vehicle.AngularVelocity.Roll:
119   datatype: float
120   type: sensor
121   dbc2vss:
122     signal: GyroscopeY
123     interval_ms: 100
124
125 Vehicle.AngularVelocity.Yaw:
126   datatype: float
127   type: sensor
128   dbc2vss:
129     signal: GyroscopeZ
130     interval_ms: 100
131
132 Vehicle.CurrentLocation.Latitude:
133   datatype: double
134   type: sensor
135   dbc2vss:
136     signal: Latitude
137     interval_ms: 100
138
139 Vehicle.CurrentLocation.Longitude:
140   datatype: double
141   type: sensor
142   dbc2vss:
143     signal: Longitude
144     interval_ms: 100
145
146
147 #
148 # AGL VSS additions
149 #
150
151 # Extra navigation state signals
152
153 Vehicle.Cabin.Infotainment.Navigation.State:
154   datatype: string
155   type: sensor
156   allowed: [ 'UNKNOWN', 'ACTIVE', 'ARRIVED', 'STOPPED' ]
157   description: Navigation state.
158
159 Vehicle.Cabin.Infotainment.Navigation.ElapsedDistance:
160   datatype: float
161   type: sensor
162   unit: km
163   description: Navigation elapsed distance.
164
165
166 # Extra audio control signals
167
168 Vehicle.Cabin.Infotainment.Media.Audio:
169   type: branch
170   description: Media audio controls.
171
172 Vehicle.Cabin.Infotainment.Media.Audio.Balance:
173   datatype: int8
174   type: actuator
175   min: -100
176   max: 100
177   unit: percent
178   description: Audio left/right balance.
179
180 Vehicle.Cabin.Infotainment.Media.Audio.Fade:
181   datatype: int8
182   type: actuator
183   min: -100
184   max: 100
185   unit: percent
186   description: Audio front/rear balance.
187
188 Vehicle.Cabin.Infotainment.Media.Audio.Bass:
189   datatype: int8
190   type: actuator
191   min: -100
192   max: 100
193   unit: percent
194   description: Audio low-frequency filter control.
195
196 Vehicle.Cabin.Infotainment.Media.Audio.Treble:
197   datatype: int8
198   type: actuator
199   min: -100
200   max: 100
201   unit: percent
202   description: Audio high-frequency filter control.
203
204
205 # Extra steering wheel switch signals, including DBC mappings
206
207 Vehicle.Cabin.SteeringWheel:
208   type: branch
209   description: AGL steering wheel demo data.
210
211 Vehicle.Cabin.SteeringWheel.Switches:
212   type: branch
213   description: AGL steering wheel demo switch data.
214
215 Vehicle.Cabin.SteeringWheel.Switches.VolumeUp:
216   datatype: boolean
217   type: sensor
218   description: Steering wheel volume up switch engaged.
219   vss2dbc:
220     signal: SW_VolumeUp
221     transform:
222       mapping:
223         - from: false
224           to: 0
225         - from: true
226           to: 1
227
228 Vehicle.Cabin.SteeringWheel.Switches.VolumeDown:
229   datatype: boolean
230   type: sensor
231   description: Steering wheel volume down switch engaged.
232   vss2dbc:
233     signal: SW_VolumeDown
234     transform:
235       mapping:
236         - from: false
237           to: 0
238         - from: true
239           to: 1
240
241 Vehicle.Cabin.SteeringWheel.Switches.VolumeMute:
242   datatype: boolean
243   type: sensor
244   description: Steering wheel volume mute switch engaged.
245   vss2dbc:
246     signal: SW_VolumeMute
247     transform:
248       mapping:
249         - from: false
250           to: 0
251         - from: true
252           to: 1
253
254 Vehicle.Cabin.SteeringWheel.Switches.Next:
255   datatype: boolean
256   type: sensor
257   description: Steering wheel next switch engaged.
258   vss2dbc:
259     signal: SW_Next
260     transform:
261       mapping:
262         - from: false
263           to: 0
264         - from: true
265           to: 1
266
267 Vehicle.Cabin.SteeringWheel.Switches.Previous:
268   datatype: boolean
269   type: sensor
270   description: Steering wheel previous switch engaged.
271   vss2dbc:
272     signal: SW_Previous
273     transform:
274       mapping:
275         - from: false
276           to: 0
277         - from: true
278           to: 1
279
280 Vehicle.Cabin.SteeringWheel.Switches.Mode:
281   datatype: boolean
282   type: sensor
283   description: Steering wheel mode switch engaged.
284   vss2dbc:
285     signal: SW_Mode
286     transform:
287       mapping:
288         - from: false
289           to: 0
290         - from: true
291           to: 1
292
293 Vehicle.Cabin.SteeringWheel.Switches.Info:
294   datatype: boolean
295   type: sensor
296   description: Steering wheel info switch engaged.
297   vss2dbc:
298     signal: SW_Info
299     transform:
300       mapping:
301         - from: false
302           to: 0
303         - from: true
304           to: 1
305
306 Vehicle.Cabin.SteeringWheel.Switches.CruiseEnable:
307   datatype: boolean
308   type: sensor
309   description: Steering wheel cruise enable switch engaged.
310   vss2dbc:
311     signal: SW_CruiseEnable
312     transform:
313       mapping:
314         - from: false
315           to: 0
316         - from: true
317           to: 1
318
319 Vehicle.Cabin.SteeringWheel.Switches.CruiseSet:
320   datatype: boolean
321   type: sensor
322   description: Steering wheel cruise set switch engaged.
323   vss2dbc:
324     signal: SW_CruiseSet
325     transform:
326       mapping:
327         - from: false
328           to: 0
329         - from: true
330           to: 1
331
332 Vehicle.Cabin.SteeringWheel.Switches.CruiseResume:
333   datatype: boolean
334   type: sensor
335   description: Steering wheel cruise resume switch engaged.
336   vss2dbc:
337     signal: SW_CruiseResume
338     transform:
339       mapping:
340         - from: false
341           to: 0
342         - from: true
343           to: 1
344
345 Vehicle.Cabin.SteeringWheel.Switches.CruiseCancel:
346   datatype: boolean
347   type: sensor
348   description: Steering wheel cruise cancel switch engaged.
349   vss2dbc:
350     signal: SW_CruiseCancel
351     transform:
352       mapping:
353         - from: false
354           to: 0
355         - from: true
356           to: 1
357
358 Vehicle.Cabin.SteeringWheel.Switches.CruiseLimit:
359   datatype: boolean
360   type: sensor
361   description: Steering wheel cruise limit switch engaged.
362   vss2dbc:
363     signal: SW_CruiseLimit
364     transform:
365       mapping:
366         - from: false
367           to: 0
368         - from: true
369           to: 1
370
371 Vehicle.Cabin.SteeringWheel.Switches.CruiseDistance:
372   datatype: boolean
373   type: sensor
374   description: Steering wheel cruise distance switch engaged.
375   vss2dbc:
376     signal: SW_CruiseDistance
377     transform:
378       mapping:
379         - from: false
380           to: 0
381         - from: true
382           to: 1
383
384 Vehicle.Cabin.SteeringWheel.Switches.Voice:
385   datatype: boolean
386   type: sensor
387   description: Steering wheel voice switch engaged.
388   vss2dbc:
389     signal: SW_Voice
390     transform:
391       mapping:
392         - from: false
393           to: 0
394         - from: true
395           to: 1
396
397 Vehicle.Cabin.SteeringWheel.Switches.PhoneCall:
398   datatype: boolean
399   type: sensor
400   description: Steering wheel phone call switch engaged.
401   vss2dbc:
402     signal: SW_PhoneCall
403     transform:
404       mapping:
405         - from: false
406           to: 0
407         - from: true
408           to: 1
409
410 Vehicle.Cabin.SteeringWheel.Switches.PhoneHangup:
411   datatype: boolean
412   type: sensor
413   description: Steering wheel phone hangup switch engaged.
414   vss2dbc:
415     signal: SW_PhoneHangup
416     transform:
417       mapping:
418         - from: false
419           to: 0
420         - from: true
421           to: 1
422
423 Vehicle.Cabin.SteeringWheel.Switches.Horn:
424   datatype: boolean
425   type: sensor
426   description: Steering wheel horn switch engaged.
427   vss2dbc:
428     signal: SW_Horn
429     transform:
430       mapping:
431         - from: false
432           to: 0
433         - from: true
434           to: 1
435
436 Vehicle.Cabin.SteeringWheel.Switches.LaneDepartureWarning:
437   datatype: boolean
438   type: sensor
439   description: Steering wheel lane departure warning switch engaged.
440   vss2dbc:
441     signal: SW_LaneDepartureWarning
442     transform:
443       mapping:
444         - from: false
445           to: 0
446         - from: true
447           to: 1