summaryrefslogtreecommitdiffstats
path: root/lib/vehicle_signal/vehicle_signal_methods.dart
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-01-02 15:35:50 -0500
committerScott Murray <scott.murray@konsulko.com>2023-01-02 15:41:53 -0500
commitc605ab037edcb35a7aa365fa6abe7fd6289d8a19 (patch)
treefd9ec01408646706827e3b369695e53bbd105279 /lib/vehicle_signal/vehicle_signal_methods.dart
parentaa3ebcabd92b63be6b9cfe0bc3f877b9f124c1d2 (diff)
VSS signal fixesneedlefish
Changes: - Update some signals for VSS 3.0 changes that were missed on the initial pass. - Improve error handling in VSS parsing to display error message from the VIS server. - Add explicit knob to disable navigation display with a default value of disabled, so that mode switches triggered by the steering wheel "Info" signal do not unexpectedly activate it. Bug-AGL: SPEC-4664 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ib5fba613053f2860a0a5ff7331c78d6ab9590848
Diffstat (limited to 'lib/vehicle_signal/vehicle_signal_methods.dart')
-rw-r--r--lib/vehicle_signal/vehicle_signal_methods.dart8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vehicle_signal/vehicle_signal_methods.dart b/lib/vehicle_signal/vehicle_signal_methods.dart
index 04c740c..7f3d8e0 100644
--- a/lib/vehicle_signal/vehicle_signal_methods.dart
+++ b/lib/vehicle_signal/vehicle_signal_methods.dart
@@ -2,6 +2,7 @@
import 'dart:convert';
import 'dart:io';
+import 'package:flutter/rendering.dart';
import 'package:flutter_cluster_dashboard/cluster_config.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_cluster_dashboard/map/networkPolyline.dart';
@@ -221,8 +222,7 @@ class VISS {
vehicleSignal.update(isCruiseControlError: dp['value']);
break;
case VSPath.vehicleCruiseControlSpeedSet:
- vehicleSignal.update(
- cruiseControlSpeed: dp['value']);
+ vehicleSignal.update(cruiseControlSpeed: dp['value']);
break;
case VSPath.vehicleCruiseControlSpeedisActive:
vehicleSignal.update(isCruiseControlActive: dp['value']);
@@ -306,8 +306,8 @@ class VISS {
.containsKey("dp")) {
print("ERROR:'dp':key not found !");
}
- } else {
- print("ERROR:'data':key not found!");
+ } else if (dataMap.containsKey("error")) {
+ print("ERROR: ${dataMap['error']['message']}");
}
}
}