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