Dash: speed and coolant from CAN (vehicle_speed_kph, coolant_temp_c); GNSS speed beside
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
+5
-3
@@ -29,9 +29,11 @@ class DashPage extends StatelessWidget {
|
|||||||
final b = boundary;
|
final b = boundary;
|
||||||
Reading r(String n) => Reading.of(b, n);
|
Reading r(String n) => Reading.of(b, n);
|
||||||
final rpm = r('engine_rpm');
|
final rpm = r('engine_rpm');
|
||||||
final speed = r('gnss_speed_kph');
|
// CAN for display (project-yukart decision 30); GNSS beside it, to show their difference.
|
||||||
|
final speed = r('vehicle_speed_kph');
|
||||||
|
final gnss = r('gnss_speed_kph');
|
||||||
final pedal = r('accel_pedal_pct');
|
final pedal = r('accel_pedal_pct');
|
||||||
final coolant = r('obd_coolant_temp_c');
|
final coolant = r('coolant_temp_c');
|
||||||
final lat = r('imu_accel_lat_g');
|
final lat = r('imu_accel_lat_g');
|
||||||
final lon = r('imu_accel_lon_g');
|
final lon = r('imu_accel_lon_g');
|
||||||
// The compass's states, from gnss_fix: none → acquiring, 2d/3d → fix, missing → none known.
|
// The compass's states, from gnss_fix: none → acquiring, 2d/3d → fix, missing → none known.
|
||||||
@@ -85,7 +87,7 @@ class DashPage extends StatelessWidget {
|
|||||||
StatBoxMain(
|
StatBoxMain(
|
||||||
value: speed.fixed(),
|
value: speed.fixed(),
|
||||||
unit: 'km/h',
|
unit: 'km/h',
|
||||||
label: 'GNSS SPEED',
|
label: 'SPEED · GNSS ${gnss.fixed()}',
|
||||||
dim: speed.dim,
|
dim: speed.dim,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user