diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-12-08 14:13:50 +0900 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-12-08 05:32:30 +0000 |
commit | e440ec331e7d55cdf2e666d45f63c05571ecc609 (patch) | |
tree | 339037895c6bfd59fbfcb4e067ddd45e27d1189b | |
parent | 5e0cf02b4e11d67ce8b705479e13e0b9ebbf8ad4 (diff) |
Update signal names and types for KUKSA.val 0.2.5
Bug-AGL: SPEC-4641
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I50e035ad0526ce66da46950c3e54ef104bde075e
-rw-r--r-- | lib/vehicle_signal/vehicle_signal_methods.dart | 18 | ||||
-rw-r--r-- | lib/vehicle_signal/vehicle_signal_path.dart | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/vehicle_signal/vehicle_signal_methods.dart b/lib/vehicle_signal/vehicle_signal_methods.dart index 21341c2..04c740c 100644 --- a/lib/vehicle_signal/vehicle_signal_methods.dart +++ b/lib/vehicle_signal/vehicle_signal_methods.dart @@ -156,16 +156,16 @@ class VISS { if (dp["value"] != "---") {
switch (path) {
case VSPath.vehicleSpeed:
- vehicleSignal.update(speed: double.parse(dp["value"]));
+ vehicleSignal.update(speed: dp["value"]);
break;
case VSPath.vehicleEngineRPM:
- vehicleSignal.update(rpm: double.parse(dp["value"]));
+ vehicleSignal.update(rpm: dp["value"].toDouble());
break;
case VSPath.vehicleFuelLevel:
- vehicleSignal.update(fuelLevel: double.parse(dp["value"]));
+ vehicleSignal.update(fuelLevel: dp["value"]);
break;
case VSPath.vehicleCoolantTemp:
- vehicleSignal.update(coolantTemp: double.parse(dp["value"]));
+ vehicleSignal.update(coolantTemp: dp["value"]);
break;
case VSPath.vehicleLeftIndicator:
vehicleSignal.update(isLeftIndicator: dp["value"]);
@@ -222,7 +222,7 @@ class VISS { break;
case VSPath.vehicleCruiseControlSpeedSet:
vehicleSignal.update(
- cruiseControlSpeed: double.parse(dp['value']));
+ cruiseControlSpeed: dp['value']);
break;
case VSPath.vehicleCruiseControlSpeedisActive:
vehicleSignal.update(isCruiseControlActive: dp['value']);
@@ -276,18 +276,18 @@ class VISS { break;
//
case VSPath.vehicleCurrLat:
- vehicleSignal.update(currLat: double.parse(dp['value']));
+ vehicleSignal.update(currLat: dp['value']);
break;
case VSPath.vehicleCurrLng:
- vehicleSignal.update(currLng: double.parse(dp['value']));
+ vehicleSignal.update(currLng: dp['value']);
break;
case VSPath.vehicleDesLat:
- vehicleSignal.update(desLat: double.parse(dp['value']));
+ vehicleSignal.update(desLat: dp['value']);
polylineDBNotifier.update(currPolyLineList: []);
break;
case VSPath.vehicleDesLng:
- vehicleSignal.update(desLng: double.parse(dp['value']));
+ vehicleSignal.update(desLng: dp['value']);
polylineDBNotifier.update(currPolyLineList: []);
break;
default:
diff --git a/lib/vehicle_signal/vehicle_signal_path.dart b/lib/vehicle_signal/vehicle_signal_path.dart index 72b016d..25cc27a 100644 --- a/lib/vehicle_signal/vehicle_signal_path.dart +++ b/lib/vehicle_signal/vehicle_signal_path.dart @@ -3,7 +3,7 @@ class VSPath {
static const String vehicleSpeed = "Vehicle.Speed";
static const String vehicleEngineRPM =
- "Vehicle.Powertrain.CombustionEngine.Engine.Speed";
+ "Vehicle.Powertrain.CombustionEngine.Speed";
static const String vehicleFuelLevel = "Vehicle.Powertrain.FuelSystem.Level";
static const String vehicleCoolantTemp =
"Vehicle.Powertrain.CombustionEngine.Engine.ECT";
|