diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-11-29 15:29:59 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-11-29 15:38:42 -0500 |
commit | dca5f5bc58fc3b25972bedc82827b71300d66adc (patch) | |
tree | 72525803c31d218b18c220e21173930aed959d0b /lib/presentation/screens | |
parent | b9377beb28bb372f8fc29dfe3eeb9145462b716f (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/presentation/screens')
-rw-r--r-- | lib/presentation/screens/dashboard/widgets/circle_indicator.dart | 4 |
1 files changed, 2 insertions, 2 deletions
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<RPMProgressIndicator> 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<RPMProgressIndicator> width: 220, child: CustomPaint( foregroundPainter: CirclePainter( - value: rpm.toDouble(), + value: rpm, maxValue: maxRpm.toDouble(), isRPM: true, ), |