diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-06-12 12:50:11 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-06-12 12:50:11 -0400 |
commit | 81ded150718320da690908544f041addb2f56102 (patch) | |
tree | 658b012a7b176c88dbe3d8f6925144bd49897461 | |
parent | d63cd17b21e201dc1a94242f16b957aa9b6d232b (diff) |
Update VIS vehicle signal supportmarlin
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 <scott.murray@konsulko.com>
Change-Id: Ia381a9fcb1f7d9d8e94f640c65876a842b5d76ce
-rw-r--r-- | app/qml/Main.qml | 4 |
1 files 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) { |