kuksa-dbc-feeder-sllin: add recipe
[AGL/meta-agl-demo.git] / recipes-connectivity / kuksa-val / kuksa-dbc-feeder / mapping.yml
1 # Mapping Speed
2 PT_VehicleAvgSpeed:
3   minupdatedelay: 100
4   targets: 
5     Vehicle.Speed: {}
6
7 PT_EngineSpeed:
8   minupdatedelay: 100
9   targets: 
10     Vehicle.Powertrain.CombustionEngine.Engine.Speed:
11       transform:
12         math: "floor(x+0.5)"
13
14 SW_Next:
15   minupdatedelay: 500
16   targets:
17     Vehicle.Cabin.Infotainment.Media.Action:
18       transform:
19         fullmapping:
20           1: "SkipForward"
21
22 SW_Previous:
23   minupdatedelay: 500
24   targets:
25     Vehicle.Cabin.Infotainment.Media.Action:
26       transform:
27         fullmapping:
28           1: "SkipBackward"
29
30 # NOTE: Dependent on AGL-specific VSS overlay adding the extra action
31 SW_Mode:
32   minupdatedelay: 500
33   targets:
34     Vehicle.Cabin.Infotainment.Media.Action:
35       transform:
36         fullmapping:
37           1: "NextSource"
38
39 # NOTE: Dependent on AGL-specific VSS overlay adding the signal
40 SW_Info:
41   minupdatedelay: 500
42   targets:
43     Vehicle.Cabin.Infotainment.Cluster.Mode:
44       transform:
45         fullmapping:
46           1: "true"
47
48 #
49 # The following is a little hackish, due to relying on the
50 # application to treat IsActive and IsSet = "true" as toggles, and
51 # being dependent on the AGL-specific VSS overlay to add IsSet.
52 # A standalone LIN feeder with some state knowledge would maybe
53 # be cleaner.  Another possible option would be the addition of
54 # another type of transform that has state to the DBC feeder.
55 #
56
57 SW_CruiseEnable:
58   minupdatedelay: 500
59   targets:
60     Vehicle.ADAS.CruiseControl.IsActive:
61       transform:
62         fullmapping:
63           1: "true"
64
65 SW_CruiseSet:
66   minupdatedelay: 500
67   targets:
68     Vehicle.ADAS.CruiseControl.IsSet:
69       transform:
70         fullmapping:
71           1: "true"
72
73 SW_CruiseResume:
74   minupdatedelay: 500
75   targets:
76     Vehicle.ADAS.CruiseControl.IsSet:
77       transform:
78         fullmapping:
79           1: "true"
80
81 SW_CruiseCancel:
82   minupdatedelay: 500
83   targets:
84     Vehicle.ADAS.CruiseControl.IsSet:
85       transform:
86         fullmapping:
87           1: "false"
88
89 SW_LaneDepartureWarning:
90   minupdatedelay: 500
91   targets:
92     Vehicle.ADAS.LaneDepartureDetection.IsActive:
93       transform:
94         fullmapping:
95           1: "true"