From 34507cc363eb04bfae36f9a1e9606c32ad5f719c Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 6 Jun 2022 20:02:33 -0400 Subject: kuksa-dbc-feeder-sllin: add recipe Add kuksa-dbc-feeder-sllin recipe to install systemd unit and configuration file to run a second copy of the KUKSA.val DBC feeder against the demo setup's sllin0 interface. The systemd unit will bring up the sllin0 interface by a call to the can-dev-helper.sh script if run on hardware that lacks the LIN adapter. Additionally, the DBC feeder mapping configuration has been updated with the mappings for the steering wheel LIN events, and kuksa-dbc-feeder-sllin has been added to the agl-demo-preload packagegroup for the full AGL demo setup. Bug-AGL: SPEC-4405 Signed-off-by: Scott Murray Change-Id: Ief38c4dcccda899cdef24881b292928e607dda14 --- .../kuksa-val/kuksa-dbc-feeder/mapping.yml | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) (limited to 'recipes-connectivity/kuksa-val/kuksa-dbc-feeder') diff --git a/recipes-connectivity/kuksa-val/kuksa-dbc-feeder/mapping.yml b/recipes-connectivity/kuksa-val/kuksa-dbc-feeder/mapping.yml index a493168d..f8a561d2 100644 --- a/recipes-connectivity/kuksa-val/kuksa-dbc-feeder/mapping.yml +++ b/recipes-connectivity/kuksa-val/kuksa-dbc-feeder/mapping.yml @@ -10,3 +10,86 @@ PT_EngineSpeed: Vehicle.Powertrain.CombustionEngine.Engine.Speed: transform: math: "floor(x+0.5)" + +SW_Next: + minupdatedelay: 500 + targets: + Vehicle.Cabin.Infotainment.Media.Action: + transform: + fullmapping: + 1: "SkipForward" + +SW_Previous: + minupdatedelay: 500 + targets: + Vehicle.Cabin.Infotainment.Media.Action: + transform: + fullmapping: + 1: "SkipBackward" + +# NOTE: Dependent on AGL-specific VSS overlay adding the extra action +SW_Mode: + minupdatedelay: 500 + targets: + Vehicle.Cabin.Infotainment.Media.Action: + transform: + fullmapping: + 1: "NextSource" + +# NOTE: Dependent on AGL-specific VSS overlay adding the signal +SW_Info: + minupdatedelay: 500 + targets: + Vehicle.Cabin.Infotainment.Cluster.Mode: + transform: + fullmapping: + 1: "true" + +# +# The following is a little hackish, due to relying on the +# application to treat IsActive and IsSet = "true" as toggles, and +# being dependent on the AGL-specific VSS overlay to add IsSet. +# A standalone LIN feeder with some state knowledge would maybe +# be cleaner. Another possible option would be the addition of +# another type of transform that has state to the DBC feeder. +# + +SW_CruiseEnable: + minupdatedelay: 500 + targets: + Vehicle.ADAS.CruiseControl.IsActive: + transform: + fullmapping: + 1: "true" + +SW_CruiseSet: + minupdatedelay: 500 + targets: + Vehicle.ADAS.CruiseControl.IsSet: + transform: + fullmapping: + 1: "true" + +SW_CruiseResume: + minupdatedelay: 500 + targets: + Vehicle.ADAS.CruiseControl.IsSet: + transform: + fullmapping: + 1: "true" + +SW_CruiseCancel: + minupdatedelay: 500 + targets: + Vehicle.ADAS.CruiseControl.IsSet: + transform: + fullmapping: + 1: "false" + +SW_LaneDepartureWarning: + minupdatedelay: 500 + targets: + Vehicle.ADAS.LaneDepartureDetection.IsActive: + transform: + fullmapping: + 1: "true" -- cgit 1.2.3-korg