From dca5f5bc58fc3b25972bedc82827b71300d66adc Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Wed, 29 Nov 2023 15:29:59 -0500 Subject: 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 --- lib/presentation/screens/dashboard/widgets/circle_indicator.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/presentation/screens/dashboard') diff --git a/lib/presentation/screens/dashboard/widgets/circle_indicator.dart b/lib/presentation/screens/dashboard/widgets/circle_indicator.dart index 8fe9533..6ff3613 100644 --- a/lib/presentation/screens/dashboard/widgets/circle_indicator.dart +++ b/lib/presentation/screens/dashboard/widgets/circle_indicator.dart @@ -46,7 +46,7 @@ class RPMProgressIndicatorState extends ConsumerState children: [ Text( - rpm.toString(), + rpm.toStringAsFixed(0), style: GoogleFonts.brunoAce( textStyle: const TextStyle(color: Colors.white, fontSize: 44), ), @@ -87,7 +87,7 @@ class RPMProgressIndicatorState extends ConsumerState width: 220, child: CustomPaint( foregroundPainter: CirclePainter( - value: rpm.toDouble(), + value: rpm, maxValue: maxRpm.toDouble(), isRPM: true, ), -- cgit 1.2.3-korg