From 27e13131ab377c4bed24f0dbd9b7e61a58a3bba8 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sun, 12 Jun 2022 12:50:11 -0400 Subject: Update VIS vehicle signal support For consistency, change the VIS signal being used for display mode switching to new AGL custom steering wheel switch signals instead of a custom Vehicle.Cabin.Infotainment.Cluster.Mode actuator signal. Having the custom AGL signals for the steering wheel demo grouped together seems better for maintainability. Bug-AGL: SPEC-4409 Signed-off-by: Scott Murray Change-Id: Ia381a9fcb1f7d9d8e94f640c65876a842b5d76ce (cherry picked from commit 81ded150718320da690908544f041addb2f56102) --- app/qml/Main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/qml/Main.qml b/app/qml/Main.qml index 471d160..29704fb 100644 --- a/app/qml/Main.qml +++ b/app/qml/Main.qml @@ -32,7 +32,7 @@ ApplicationWindow { onAuthorized: { VehicleSignals.subscribe("Vehicle.Speed") VehicleSignals.subscribe("Vehicle.Powertrain.CombustionEngine.Engine.Speed") - VehicleSignals.subscribe("Vehicle.Cabin.Infotainment.Cluster.Mode") + VehicleSignals.subscribe("Vehicle.Cabin.SteeringWheel.Switches.Info") VehicleSignals.get("Vehicle.Cabin.Infotainment.HMI.DistanceUnit") VehicleSignals.subscribe("Vehicle.Cabin.Infotainment.HMI.DistanceUnit") } @@ -58,7 +58,7 @@ ApplicationWindow { vehicleSpeed = parseFloat(value) } else if (path === "Vehicle.Powertrain.CombustionEngine.Engine.Speed") { engineSpeed = parseFloat(value) - } else if (path === "Vehicle.Cabin.Infotainment.Cluster.Mode" && value === "true") { + } else if (path === "Vehicle.Cabin.SteeringWheel.Switches.Info" && value === "true") { console.log ("Switching views!") console.log ("currentIndex = " + container.currentIndex) if (container.currentIndex === 0) { -- cgit 1.2.3-korg