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