GATEWAY-EW24
[AGL/meta-agl-demo.git] / recipes-connectivity / vss / vss-agl / bak / agl_vss_overlay.vspec.gw-hardware
1 # DBC mappings for other signals for V2C demo
2
3 # Need HVAC signal mapping here!
4
5 # DBC mappings for demo HVAC
6
7 Vehicle.Cabin.HVAC.Station.Row1.Driver.Temperature:
8   datatype: int8
9   type: actuator
10   vss2dbc:
11     signal: PT_TempLeft
12     transform:
13       math: floor("x * 2.4 + 0.5")
14
15 Vehicle.Cabin.HVAC.Station.Row1.Passenger.Temperature:
16   datatype: int8
17   type: actuator
18   vss2dbc:
19     signal: PT_TempRight
20     transform:
21       math: floor("x * 2.4 + 0.5")
22
23 Vehicle.Cabin.HVAC.Station.Row1.Driver.FanSpeed:
24   datatype: uint8
25   type: actuator
26   vss2dbc:
27     signal: PT_FanSpeed
28     transform:
29       math: floor("x * 255 / 100 + 0.5")
30
31 #
32 # AGL VSS additions
33 #
34
35 # Extra navigation state signals
36
37 Vehicle.Cabin.Infotainment.Navigation.State:
38   datatype: string
39   type: sensor
40   allowed: [ 'UNKNOWN', 'ACTIVE', 'ARRIVED', 'STOPPED' ]
41   description: Navigation state.
42
43 Vehicle.Cabin.Infotainment.Navigation.ElapsedDistance:
44   datatype: float
45   type: sensor
46   unit: km
47   description: Navigation elapsed distance.
48
49
50 # Extra audio control signals
51
52 Vehicle.Cabin.Infotainment.Media.Audio:
53   type: branch
54   description: Media audio controls.
55
56 Vehicle.Cabin.Infotainment.Media.Audio.Balance:
57   datatype: int8
58   type: actuator
59   min: -100
60   max: 100
61   unit: percent
62   description: Audio left/right balance.
63
64 Vehicle.Cabin.Infotainment.Media.Audio.Fade:
65   datatype: int8
66   type: actuator
67   min: -100
68   max: 100
69   unit: percent
70   description: Audio front/rear balance.
71
72 Vehicle.Cabin.Infotainment.Media.Audio.Bass:
73   datatype: int8
74   type: actuator
75   min: -100
76   max: 100
77   unit: percent
78   description: Audio low-frequency filter control.
79
80 Vehicle.Cabin.Infotainment.Media.Audio.Treble:
81   datatype: int8
82   type: actuator
83   min: -100
84   max: 100
85   unit: percent
86   description: Audio high-frequency filter control.
87
88
89 # Extra steering wheel switch signals, including DBC mappings
90
91 Vehicle.Cabin.SteeringWheel:
92   type: branch
93   description: AGL steering wheel demo data.
94
95 Vehicle.Cabin.SteeringWheel.Switches:
96   type: branch
97   description: AGL steering wheel demo switch data.
98
99 Vehicle.Cabin.SteeringWheel.Switches.VolumeUp:
100   datatype: boolean
101   type: sensor
102   description: Steering wheel volume up switch engaged.
103   dbc2vss:
104     signal: SW_VolumeUp
105     on_change: true
106     transform:
107       mapping:
108         - from: 0
109           to: false
110         - from: 1
111           to: true
112
113 Vehicle.Cabin.SteeringWheel.Switches.VolumeDown:
114   datatype: boolean
115   type: sensor
116   description: Steering wheel volume down switch engaged.
117   dbc2vss:
118     signal: SW_VolumeDown
119     on_change: true
120     transform:
121       mapping:
122         - from: 0
123           to: false
124         - from: 1
125           to: true
126
127 Vehicle.Cabin.SteeringWheel.Switches.VolumeMute:
128   datatype: boolean
129   type: sensor
130   description: Steering wheel volume mute switch engaged.
131   dbc2vss:
132     signal: SW_VolumeMute
133     on_change: true
134     transform:
135       mapping:
136         - from: 0
137           to: false
138         - from: 1
139           to: true
140
141 Vehicle.Cabin.SteeringWheel.Switches.Next:
142   datatype: boolean
143   type: sensor
144   description: Steering wheel next switch engaged.
145   dbc2vss:
146     signal: SW_Next
147     on_change: true
148     transform:
149       mapping:
150         - from: 0
151           to: false
152         - from: 1
153           to: true
154
155 Vehicle.Cabin.SteeringWheel.Switches.Previous:
156   datatype: boolean
157   type: sensor
158   description: Steering wheel previous switch engaged.
159   dbc2vss:
160     signal: SW_Previous
161     on_change: true
162     transform:
163       mapping:
164         - from: 0
165           to: false
166         - from: 1
167           to: true
168
169 Vehicle.Cabin.SteeringWheel.Switches.Mode:
170   datatype: boolean
171   type: sensor
172   description: Steering wheel mode switch engaged.
173   dbc2vss:
174     signal: SW_Mode
175     on_change: true
176     transform:
177       mapping:
178         - from: 0
179           to: false
180         - from: 1
181           to: true
182
183 Vehicle.Cabin.SteeringWheel.Switches.Info:
184   datatype: boolean
185   type: sensor
186   description: Steering wheel info switch engaged.
187   dbc2vss:
188     signal: SW_Info
189     on_change: true
190     transform:
191       mapping:
192         - from: 0
193           to: false
194         - from: 1
195           to: true
196
197 Vehicle.Cabin.SteeringWheel.Switches.CruiseEnable:
198   datatype: boolean
199   type: sensor
200   description: Steering wheel cruise enable switch engaged.
201   dbc2vss:
202     signal: SW_CruiseEnable
203     on_change: true
204     transform:
205       mapping:
206         - from: 0
207           to: false
208         - from: 1
209           to: true
210
211 Vehicle.Cabin.SteeringWheel.Switches.CruiseSet:
212   datatype: boolean
213   type: sensor
214   description: Steering wheel cruise set switch engaged.
215   dbc2vss:
216     signal: SW_CruiseSet
217     on_change: true
218     transform:
219       mapping:
220         - from: 0
221           to: false
222         - from: 1
223           to: true
224
225 Vehicle.Cabin.SteeringWheel.Switches.CruiseResume:
226   datatype: boolean
227   type: sensor
228   description: Steering wheel cruise resume switch engaged.
229   dbc2vss:
230     signal: SW_CruiseResume
231     on_change: true
232     transform:
233       mapping:
234         - from: 0
235           to: false
236         - from: 1
237           to: true
238
239 Vehicle.Cabin.SteeringWheel.Switches.CruiseCancel:
240   datatype: boolean
241   type: sensor
242   description: Steering wheel cruise cancel switch engaged.
243   dbc2vss:
244     signal: SW_CruiseCancel
245     on_change: true
246     transform:
247       mapping:
248         - from: 0
249           to: false
250         - from: 1
251           to: true
252
253 Vehicle.Cabin.SteeringWheel.Switches.CruiseLimit:
254   datatype: boolean
255   type: sensor
256   description: Steering wheel cruise limit switch engaged.
257   dbc2vss:
258     signal: SW_CruiseLimit
259     on_change: true
260     transform:
261       mapping:
262         - from: 0
263           to: false
264         - from: 1
265           to: true
266
267 Vehicle.Cabin.SteeringWheel.Switches.CruiseDistance:
268   datatype: boolean
269   type: sensor
270   description: Steering wheel cruise distance switch engaged.
271   dbc2vss:
272     signal: SW_CruiseDistance
273     on_change: true
274     transform:
275       mapping:
276         - from: 0
277           to: false
278         - from: 1
279           to: true
280
281 Vehicle.Cabin.SteeringWheel.Switches.Voice:
282   datatype: boolean
283   type: sensor
284   description: Steering wheel voice switch engaged.
285   dbc2vss:
286     signal: SW_Voice
287     on_change: true
288     transform:
289       mapping:
290         - from: 0
291           to: false
292         - from: 1
293           to: true
294
295 Vehicle.Cabin.SteeringWheel.Switches.PhoneCall:
296   datatype: boolean
297   type: sensor
298   description: Steering wheel phone call switch engaged.
299   dbc2vss:
300     signal: SW_PhoneCall
301     on_change: true
302     transform:
303       mapping:
304         - from: 0
305           to: false
306         - from: 1
307           to: true
308
309 Vehicle.Cabin.SteeringWheel.Switches.PhoneHangup:
310   datatype: boolean
311   type: sensor
312   description: Steering wheel phone hangup switch engaged.
313   dbc2vss:
314     signal: SW_PhoneHangup
315     on_change: true
316     transform:
317       mapping:
318         - from: 0
319           to: false
320         - from: 1
321           to: true
322
323 Vehicle.Cabin.SteeringWheel.Switches.Horn:
324   datatype: boolean
325   type: sensor
326   description: Steering wheel horn switch engaged.
327   dbc2vss:
328     signal: SW_Horn
329     on_change: true
330     transform:
331       mapping:
332         - from: 0
333           to: false
334         - from: 1
335           to: true
336
337 Vehicle.Cabin.SteeringWheel.Switches.LaneDepartureWarning:
338   datatype: boolean
339   type: sensor
340   description: Steering wheel lane departure warning switch engaged.
341   dbc2vss:
342     signal: SW_LaneDepartureWarning
343     on_change: true
344     transform:
345       mapping:
346         - from: 0
347           to: false
348         - from: 1
349           to: true