aboutsummaryrefslogtreecommitdiffstats
path: root/lib/data/models
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-11-29 15:29:59 -0500
committerScott Murray <scott.murray@konsulko.com>2023-11-29 15:38:42 -0500
commitdca5f5bc58fc3b25972bedc82827b71300d66adc (patch)
tree72525803c31d218b18c220e21173930aed959d0b /lib/data/models
parentb9377beb28bb372f8fc29dfe3eeb9145462b716f (diff)
VSS signal fixes
Changes: - Fix sets of HVAC and volume control signals to update the actuator target value instead of the current value. With the KUKSA.val ecosystem, it is the actuator implementation / backend that updates the current value after actuating. - Add authorization token to subscribe request metadata if it is present. - Switch type used for engine speed to double to match VSS signal definition. This fixes receiving updates, and avoids needing to convert types as well. - Added logic to push out the HVAC fan speed setting and handle external updates. - Remove unused core/constants/paths.dart file to avoid confusion over VSS signals used and their variable naming. Bug-AGL: SPEC-4999 Change-Id: Ifbf69af25e3c563e9c707a4145089e4242b89bcd Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'lib/data/models')
-rw-r--r--lib/data/models/vehicle.dart4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/data/models/vehicle.dart b/lib/data/models/vehicle.dart
index 16752d3..67ef693 100644
--- a/lib/data/models/vehicle.dart
+++ b/lib/data/models/vehicle.dart
@@ -12,7 +12,7 @@ class Vehicle {
final int mediaVolume;
final bool isChildLockActiveLeft;
final bool isChildLockActiveRight;
- final int engineSpeed;
+ final double engineSpeed;
final int frontLeftTire;
final int frontRightTire;
final int rearLeftTire;
@@ -101,7 +101,7 @@ class Vehicle {
int? mediaVolume,
bool? isChildLockActiveLeft,
bool? isChildLockActiveRight,
- int? engineSpeed,
+ double? engineSpeed,
int? frontLeftTire,
int? frontRightTire,
int? rearLeftTire,