diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-12-07 22:06:42 +0900 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-12-13 03:53:55 +0000 |
commit | 5db65d9bb45a1022c37556506ef0c15c3cc8c263 (patch) | |
tree | 93874bed2d0147188a3a55fa518fd1e436746477 /lib/Kuksa-server/vehicle_methods.dart | |
parent | fb1a23632cae6114b41ede311a3048c96af33dda (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)
Diffstat (limited to 'lib/Kuksa-server/vehicle_methods.dart')
-rw-r--r-- | lib/Kuksa-server/vehicle_methods.dart | 20 |
1 files changed, 10 insertions, 10 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( |