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