diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-01-02 15:35:50 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-01-02 20:42:53 +0000 |
commit | be4da312ad1f33cea62ba7c8768bb4060ee6a178 (patch) | |
tree | fd9ec01408646706827e3b369695e53bbd105279 /lib/vehicle_signal/vehicle_signal_methods.dart | |
parent | a0da726bdb788e6066ab8fd58bb993fe63ad52ac (diff) |
VSS signal fixeslamprey_12.1.13lamprey/12.1.1312.1.13
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
(cherry picked from commit c605ab037edcb35a7aa365fa6abe7fd6289d8a19)
Diffstat (limited to 'lib/vehicle_signal/vehicle_signal_methods.dart')
-rw-r--r-- | lib/vehicle_signal/vehicle_signal_methods.dart | 8 |
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']}");
}
}
}
|