summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/vehicle_signal/vehicle_signal_methods.dart18
-rw-r--r--lib/vehicle_signal/vehicle_signal_path.dart2
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";