GATEWAY-EW24
[AGL/meta-agl-demo.git] / recipes-connectivity / vss / vss-agl / agl_vss_overlay.vspec.control-panel
1 # DBC mappings for vehicle and engine speeds
2
3 Vehicle.Speed:
4   datatype: float
5   type: sensor
6   vss2dbc:
7     signal: PT_VehicleAvgSpeed
8
9 Vehicle.Powertrain.CombustionEngine.Speed:
10   datatype: float
11   type: sensor
12   vss2dbc:
13     signal: PT_EngineSpeed
14
15 # DBC mappings for other signals for V2C demo
16
17 Vehicle.Body.Lights.Hazard.IsSignaling:
18   datatype: boolean
19   type: actuator
20   vss2dbc:
21     signal: PT_HazardOn
22     transform:
23       mapping:
24         - from: false
25           to: 0
26         - from: true
27           to: 1
28
29 Vehicle.Body.Lights.DirectionIndicator.Left.IsSignaling:
30   datatype: boolean
31   type: actuator
32   vss2dbc:
33     signal: PT_LeftTurnOn
34     transform:
35       mapping:
36         - from: false
37           to: 0
38         - from: true
39           to: 1
40
41 Vehicle.Body.Lights.DirectionIndicator.Right.IsSignaling:
42   datatype: boolean
43   type: actuator
44   vss2dbc:
45     signal: PT_RightTurnOn
46     transform:
47       mapping:
48         - from: false
49           to: 0
50         - from: true
51           to: 1
52
53 Vehicle.OBD.ThrottlePosition:
54   datatype: float
55   type: sensor
56   vss2dbc:
57     signal: ThrottlePosition
58
59 Vehicle.Chassis.SteeringWheel.Angle:
60   datatype: int16
61   type: sensor
62   vss2dbc:
63     signal: SteeringPosition
64
65 Vehicle.Chassis.Brake.PedalPosition:
66   datatype: uint8
67   type: sensor
68   vss2dbc:
69     signal: BrakePressure
70     transform:
71       math: "x * 191.25"
72
73 Vehicle.Powertrain.Transmission.SelectedGear:
74   datatype: int8
75   type: sensor
76   vss2dbc:
77     signal: Gear
78
79 Vehicle.Acceleration.Lateral:
80   datatype: float
81   type: sensor
82   vss2dbc:
83     signal: AccelerationX
84
85 Vehicle.Acceleration.Longitudinal:
86   datatype: float
87   type: sensor
88   vss2dbc:
89     signal: AccelerationY
90
91 Vehicle.Acceleration.Vertical:
92   datatype: float
93   type: sensor
94   vss2dbc:
95     signal: AccelerationZ
96
97 Vehicle.AngularVelocity.Pitch:
98   datatype: float
99   type: sensor
100   vss2dbc:
101     signal: GyroscopeX
102
103 Vehicle.AngularVelocity.Roll:
104   datatype: float
105   type: sensor
106   vss2dbc:
107     signal: GyroscopeY
108
109 Vehicle.AngularVelocity.Yaw:
110   datatype: float
111   type: sensor
112   vss2dbc:
113     signal: GyroscopeZ
114
115 Vehicle.CurrentLocation.Latitude:
116   datatype: double
117   type: sensor
118   vss2dbc:
119     signal: Latitude
120
121 Vehicle.CurrentLocation.Longitude:
122   datatype: double
123   type: sensor
124   vss2dbc:
125     signal: Longitude
126
127
128 #
129 # AGL VSS additions
130 #
131
132 # Extra navigation state signals
133
134 Vehicle.Cabin.Infotainment.Navigation.State:
135   datatype: string
136   type: sensor
137   allowed: [ 'UNKNOWN', 'ACTIVE', 'ARRIVED', 'STOPPED' ]
138   description: Navigation state.
139
140 Vehicle.Cabin.Infotainment.Navigation.ElapsedDistance:
141   datatype: float
142   type: sensor
143   unit: km
144   description: Navigation elapsed distance.
145
146
147 # Extra audio control signals
148
149 Vehicle.Cabin.Infotainment.Media.Audio:
150   type: branch
151   description: Media audio controls.
152
153 Vehicle.Cabin.Infotainment.Media.Audio.Balance:
154   datatype: int8
155   type: actuator
156   min: -100
157   max: 100
158   unit: percent
159   description: Audio left/right balance.
160
161 Vehicle.Cabin.Infotainment.Media.Audio.Fade:
162   datatype: int8
163   type: actuator
164   min: -100
165   max: 100
166   unit: percent
167   description: Audio front/rear balance.
168
169 Vehicle.Cabin.Infotainment.Media.Audio.Bass:
170   datatype: int8
171   type: actuator
172   min: -100
173   max: 100
174   unit: percent
175   description: Audio low-frequency filter control.
176
177 Vehicle.Cabin.Infotainment.Media.Audio.Treble:
178   datatype: int8
179   type: actuator
180   min: -100
181   max: 100
182   unit: percent
183   description: Audio high-frequency filter control.
184
185
186 # Extra steering wheel switch signals, including DBC mappings
187
188 Vehicle.Cabin.SteeringWheel:
189   type: branch
190   description: AGL steering wheel demo data.
191
192 Vehicle.Cabin.SteeringWheel.Switches:
193   type: branch
194   description: AGL steering wheel demo switch data.
195
196 Vehicle.Cabin.SteeringWheel.Switches.VolumeUp:
197   datatype: boolean
198   type: sensor
199   description: Steering wheel volume up switch engaged.
200   dbc2vss:
201     signal: SW_VolumeUp
202     on_change: true
203     transform:
204       mapping:
205         - from: 0
206           to: false
207         - from: 1
208           to: true
209
210 Vehicle.Cabin.SteeringWheel.Switches.VolumeDown:
211   datatype: boolean
212   type: sensor
213   description: Steering wheel volume down switch engaged.
214   dbc2vss:
215     signal: SW_VolumeDown
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.VolumeMute:
225   datatype: boolean
226   type: sensor
227   description: Steering wheel volume mute switch engaged.
228   dbc2vss:
229     signal: SW_VolumeMute
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.Next:
239   datatype: boolean
240   type: sensor
241   description: Steering wheel next switch engaged.
242   dbc2vss:
243     signal: SW_Next
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.Previous:
253   datatype: boolean
254   type: sensor
255   description: Steering wheel previous switch engaged.
256   dbc2vss:
257     signal: SW_Previous
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.Mode:
267   datatype: boolean
268   type: sensor
269   description: Steering wheel mode switch engaged.
270   dbc2vss:
271     signal: SW_Mode
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.Info:
281   datatype: boolean
282   type: sensor
283   description: Steering wheel info switch engaged.
284   dbc2vss:
285     signal: SW_Info
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.CruiseEnable:
295   datatype: boolean
296   type: sensor
297   description: Steering wheel cruise enable switch engaged.
298   dbc2vss:
299     signal: SW_CruiseEnable
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.CruiseSet:
309   datatype: boolean
310   type: sensor
311   description: Steering wheel cruise set switch engaged.
312   dbc2vss:
313     signal: SW_CruiseSet
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.CruiseResume:
323   datatype: boolean
324   type: sensor
325   description: Steering wheel cruise resume switch engaged.
326   dbc2vss:
327     signal: SW_CruiseResume
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.CruiseCancel:
337   datatype: boolean
338   type: sensor
339   description: Steering wheel cruise cancel switch engaged.
340   dbc2vss:
341     signal: SW_CruiseCancel
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.CruiseLimit:
351   datatype: boolean
352   type: sensor
353   description: Steering wheel cruise limit switch engaged.
354   dbc2vss:
355     signal: SW_CruiseLimit
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.CruiseDistance:
365   datatype: boolean
366   type: sensor
367   description: Steering wheel cruise distance switch engaged.
368   dbc2vss:
369     signal: SW_CruiseDistance
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.Voice:
379   datatype: boolean
380   type: sensor
381   description: Steering wheel voice switch engaged.
382   dbc2vss:
383     signal: SW_Voice
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.PhoneCall:
393   datatype: boolean
394   type: sensor
395   description: Steering wheel phone call switch engaged.
396   dbc2vss:
397     signal: SW_PhoneCall
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.PhoneHangup:
407   datatype: boolean
408   type: sensor
409   description: Steering wheel phone hangup switch engaged.
410   dbc2vss:
411     signal: SW_PhoneHangup
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.Horn:
421   datatype: boolean
422   type: sensor
423   description: Steering wheel horn switch engaged.
424   dbc2vss:
425     signal: SW_Horn
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.LaneDepartureWarning:
435   datatype: boolean
436   type: sensor
437   description: Steering wheel lane departure warning switch engaged.
438   dbc2vss:
439     signal: SW_LaneDepartureWarning
440     on_change: true
441     transform:
442       mapping:
443         - from: 0
444           to: false
445         - from: 1
446           to: true