summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-12-07 22:06:42 +0900
committerScott Murray <scott.murray@konsulko.com>2022-12-13 03:53:55 +0000
commit5db65d9bb45a1022c37556506ef0c15c3cc8c263 (patch)
tree93874bed2d0147188a3a55fa518fd1e436746477
parentfb1a23632cae6114b41ede311a3048c96af33dda (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: Ifd112d65365c8f30112580cd7c706ac014acb1ca (cherry picked from commit 30ebc2ffda4d8d2f6f751f217a4fc1472b00dd99)
-rw-r--r--lib/Kuksa-server/vehicle_methods.dart20
-rw-r--r--lib/Kuksa-server/vehicle_server_path.dart2
2 files changed, 11 insertions, 11 deletions
diff --git a/lib/Kuksa-server/vehicle_methods.dart b/lib/Kuksa-server/vehicle_methods.dart
index 500f694..099d480 100644
--- a/lib/Kuksa-server/vehicle_methods.dart
+++ b/lib/Kuksa-server/vehicle_methods.dart
@@ -119,25 +119,25 @@ 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.vehicleFrontLeftTier:
- vehicleSignal.update(frontLeftTP: double.parse(dp["value"]));
+ vehicleSignal.update(frontLeftTP: dp["value"]);
break;
case VSPath.vehicleFrontRightTier:
- vehicleSignal.update(frontRightTP: double.parse(dp["value"]));
+ vehicleSignal.update(frontRightTP: dp["value"]);
break;
case VSPath.vehicleRearLeftTier:
- vehicleSignal.update(rearLeftTP: double.parse(dp["value"]));
+ vehicleSignal.update(rearLeftTP: dp["value"]);
break;
case VSPath.vehicleRearRightTier:
- vehicleSignal.update(rearRightTP: double.parse(dp["value"]));
+ vehicleSignal.update(rearRightTP: dp["value"]);
break;
@@ -149,14 +149,14 @@ class VISS {
break;
case VSPath.vehicleCurrentLatitude:
vehicleSignal.update(
- currentLatitude: double.parse(dp["value"]));
+ currentLatitude: dp["value"]);
break;
case VSPath.vehicleCurrentLongitude:
vehicleSignal.update(
- currentLongitude: double.parse(dp["value"]));
+ currentLongitude: dp["value"]);
break;
case VSPath.vehicleFuelRate:
- vehicleSignal.update(fuelRate: double.parse(dp["value"]));
+ vehicleSignal.update(fuelRate: dp["value"]);
break;
case VSPath.vehicleInsideTemperature:
vehicleSignal.update(
diff --git a/lib/Kuksa-server/vehicle_server_path.dart b/lib/Kuksa-server/vehicle_server_path.dart
index 9854320..de33502 100644
--- a/lib/Kuksa-server/vehicle_server_path.dart
+++ b/lib/Kuksa-server/vehicle_server_path.dart
@@ -2,7 +2,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";