aboutsummaryrefslogtreecommitdiffstats
path: root/app/navigation.qml
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-05-12 14:50:32 -0400
committerScott Murray <scott.murray@konsulko.com>2023-05-12 14:54:20 -0400
commitf10d5dcb08d2b0c816f73b1e9b63e3da0109ac34 (patch)
treeccd24094955938ae296c06b032bf7c32edfbaaa4 /app/navigation.qml
parent1a014832f3da70e413650e0eeb4f40e598feb257 (diff)
Update status signal states for VSS 3.1.1
The states for Vehicle.Cabin.Infotainment.Navigation.State are now uppercase with the update to VSS 3.1.1, update calls into the Navigation API from libqtappfw to match. Also comment out use of the currently unsupported start/stop states in the status event signal handler. Those were removed with the switch to using VSS, and if they are needed again down the road they will need to be implemented somewhat differently, document that in a comment. Bug-AGL: SPEC-4761 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I02863bb3754ba984dda7c9c28c77cf0f184f92cd
Diffstat (limited to 'app/navigation.qml')
-rw-r--r--app/navigation.qml31
1 files changed, 18 insertions, 13 deletions
diff --git a/app/navigation.qml b/app/navigation.qml
index 1216249..5cb3634 100644
--- a/app/navigation.qml
+++ b/app/navigation.qml
@@ -78,18 +78,23 @@ ApplicationWindow {
map.doSetWaypointsSlot(data.points[0].latitude, data.points[0].longitude, true)
}
- onStatusEvent: {
- if (data.state == "stop") {
- // Slight hack here, if sts_guide != 0, btn_guidance.discardWaypoints
- // will trigger another stop, which can cancel a queued waypoint set,
- // so set it to 0 in advance.
- btn_guidance.sts_guide = 0
- map.doPauseSimulationSlot()
- }
- if (data.state == "start") {
- btn_guidance.startGuidance()
- }
- }
+ // The status event no longer has start/stop, since that did not really
+ // match with "sensor" signal behavior in VSS. If such is required in
+ // the future, a new "actuator" signal should be used in the backend
+ // instead to reimplement this as a different event.
+ //
+ //onStatusEvent: {
+ // if (data.state == "stop") {
+ // // Slight hack here, if sts_guide != 0, btn_guidance.discardWaypoints
+ // // will trigger another stop, which can cancel a queued waypoint set,
+ // // so set it to 0 in advance.
+ // btn_guidance.sts_guide = 0
+ // map.doPauseSimulationSlot()
+ // }
+ // if (data.state == "start") {
+ // btn_guidance.startGuidance()
+ // }
+ //}
}
Map {
@@ -566,7 +571,7 @@ ApplicationWindow {
{
// Arrive at your destination
btn_guidance.sts_guide = 0
- navigation.broadcastStatus("Arrived")
+ navigation.broadcastStatus("ARRIVED")
}
}else{
setNextCoordinate(map.currentpostion.latitude, map.currentpostion.longitude,next_direction,root.car_moving_distance)