vss-agl: Add audio control signals
[AGL/meta-agl-demo.git] / recipes-connectivity / vss / vss-agl / agl_vss_overlay.vspec
1 # Define DBC mappings for vehicle and engine speeds
2
3 Vehicle.Speed:
4   datatype: float
5   type: sensor
6   dbc:
7     signal: PT_VehicleAvgSpeed
8     interval_ms: 100
9
10 Vehicle.Powertrain.CombustionEngine.Speed:
11   datatype: float
12   type: sensor
13   dbc:
14     signal: PT_EngineSpeed
15     interval_ms: 100
16     transform:
17       math: "floor(x+0.5)"
18
19
20 # Define extra navigation state signals
21
22 Vehicle.Cabin.Infotainment.Navigation.State:
23   datatype: string
24   type: sensor
25   allowed: [ 'UNKNOWN', 'ACTIVE', 'ARRIVED', 'STOPPED' ]
26   description: Navigation state.
27
28 Vehicle.Cabin.Infotainment.Navigation.ElapsedDistance:
29   datatype: float
30   type: sensor
31   unit: km
32   description: Navigation elapsed distance.
33
34
35 # Define audio control signals
36
37 Vehicle.Cabin.Infotainment.Media.Audio:
38   type: branch
39   description: Media audio controls.
40
41 Vehicle.Cabin.Infotainment.Media.Audio.Balance:
42   datatype: int8
43   type: actuator
44   min: -100
45   max: 100
46   unit: percent
47   description: Audio left/right balance.
48
49 Vehicle.Cabin.Infotainment.Media.Audio.Fade:
50   datatype: int8
51   type: actuator
52   min: -100
53   max: 100
54   unit: percent
55   description: Audio front/rear balance.
56
57 Vehicle.Cabin.Infotainment.Media.Audio.Bass:
58   datatype: int8
59   type: actuator
60   min: -100
61   max: 100
62   unit: percent
63   description: Audio low-frequency filter control.
64
65 Vehicle.Cabin.Infotainment.Media.Audio.Treble:
66   datatype: int8
67   type: actuator
68   min: -100
69   max: 100
70   unit: percent
71   description: Audio high-frequency filter control.
72
73
74 # Define extra steering wheel switch signals, including DBC mappings
75
76 Vehicle.Cabin.SteeringWheel:
77   type: branch
78   description: AGL steering wheel demo data.
79
80 Vehicle.Cabin.SteeringWheel.Switches:
81   type: branch
82   description: AGL steering wheel demo switch data.
83
84 Vehicle.Cabin.SteeringWheel.Switches.VolumeUp:
85   datatype: boolean
86   type: sensor
87   description: Steering wheel volume up switch engaged.
88   dbc:
89     signal: SW_VolumeUp
90     on_change: true
91     transform:
92       mapping:
93         - from: 0
94           to: false
95         - from: 1
96           to: true
97
98 Vehicle.Cabin.SteeringWheel.Switches.VolumeDown:
99   datatype: boolean
100   type: sensor
101   description: Steering wheel volume down switch engaged.
102   dbc:
103     signal: SW_VolumeDown
104     on_change: true
105     transform:
106       mapping:
107         - from: 0
108           to: false
109         - from: 1
110           to: true
111
112 Vehicle.Cabin.SteeringWheel.Switches.VolumeMute:
113   datatype: boolean
114   type: sensor
115   description: Steering wheel volume mute switch engaged.
116   dbc:
117     signal: SW_VolumeMute
118     on_change: true
119     transform:
120       mapping:
121         - from: 0
122           to: false
123         - from: 1
124           to: true
125
126 Vehicle.Cabin.SteeringWheel.Switches.Next:
127   datatype: boolean
128   type: sensor
129   description: Steering wheel next switch engaged.
130   dbc:
131     signal: SW_Next
132     on_change: true
133     transform:
134       mapping:
135         - from: 0
136           to: false
137         - from: 1
138           to: true
139
140 Vehicle.Cabin.SteeringWheel.Switches.Previous:
141   datatype: boolean
142   type: sensor
143   description: Steering wheel previous switch engaged.
144   dbc:
145     signal: SW_Previous
146     on_change: true
147     transform:
148       mapping:
149         - from: 0
150           to: false
151         - from: 1
152           to: true
153
154 Vehicle.Cabin.SteeringWheel.Switches.Mode:
155   datatype: boolean
156   type: sensor
157   description: Steering wheel mode switch engaged.
158   dbc:
159     signal: SW_Mode
160     on_change: true
161     transform:
162       mapping:
163         - from: 0
164           to: false
165         - from: 1
166           to: true
167
168 Vehicle.Cabin.SteeringWheel.Switches.Info:
169   datatype: boolean
170   type: sensor
171   description: Steering wheel info switch engaged.
172   dbc:
173     signal: SW_Info
174     on_change: true
175     transform:
176       mapping:
177         - from: 0
178           to: false
179         - from: 1
180           to: true
181
182 Vehicle.Cabin.SteeringWheel.Switches.CruiseEnable:
183   datatype: boolean
184   type: sensor
185   description: Steering wheel cruise enable switch engaged.
186   dbc:
187     signal: SW_CruiseEnable
188     on_change: true
189     transform:
190       mapping:
191         - from: 0
192           to: false
193         - from: 1
194           to: true
195
196 Vehicle.Cabin.SteeringWheel.Switches.CruiseSet:
197   datatype: boolean
198   type: sensor
199   description: Steering wheel cruise set switch engaged.
200   dbc:
201     signal: SW_CruiseSet
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.CruiseResume:
211   datatype: boolean
212   type: sensor
213   description: Steering wheel cruise resume switch engaged.
214   dbc:
215     signal: SW_CruiseResume
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.CruiseCancel:
225   datatype: boolean
226   type: sensor
227   description: Steering wheel cruise cancel switch engaged.
228   dbc:
229     signal: SW_CruiseCancel
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.CruiseLimit:
239   datatype: boolean
240   type: sensor
241   description: Steering wheel cruise limit switch engaged.
242   dbc:
243     signal: SW_CruiseLimit
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.CruiseDistance:
253   datatype: boolean
254   type: sensor
255   description: Steering wheel cruise distance switch engaged.
256   dbc:
257     signal: SW_CruiseDistance
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.Voice:
267   datatype: boolean
268   type: sensor
269   description: Steering wheel voice switch engaged.
270   dbc:
271     signal: SW_Voice
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.PhoneCall:
281   datatype: boolean
282   type: sensor
283   description: Steering wheel phone call switch engaged.
284   dbc:
285     signal: SW_PhoneCall
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.PhoneHangup:
295   datatype: boolean
296   type: sensor
297   description: Steering wheel phone hangup switch engaged.
298   dbc:
299     signal: SW_PhoneHangup
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.Horn:
309   datatype: boolean
310   type: sensor
311   description: Steering wheel horn switch engaged.
312   dbc:
313     signal: SW_Horn
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.LaneDepartureWarning:
323   datatype: boolean
324   type: sensor
325   description: Steering wheel lane departure warning switch engaged.
326   dbc:
327     signal: SW_LaneDepartureWarning
328     on_change: true
329     transform:
330       mapping:
331         - from: 0
332           to: false
333         - from: 1
334           to: true