summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-06-12 12:50:11 -0400
committerScott Murray <scott.murray@konsulko.com>2022-07-04 21:19:22 +0000
commit27e13131ab377c4bed24f0dbd9b7e61a58a3bba8 (patch)
treefac7fde6b40c06ba1812f3dbe3905cf9fccd2f3b
parentb53c55799ff50fb51bec1bf75bac477fa4165336 (diff)
Update VIS vehicle signal supportneedlefish_13.93.0needlefish/13.93.013.93.0
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 (cherry picked from commit 81ded150718320da690908544f041addb2f56102)
-rw-r--r--app/qml/Main.qml4
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) {