fix: use live MICOM speed on dashboard
This commit is contained in:
1 parent
d006fed6db
commit
edf38a410b
3 files changed
+17
-7
No files matched your search
@@ -25,8 +25,12 @@ $summary = NiroTelemetrySnapshot::summarize([
|
||||
'meta_system_dumpsys_ok' => 'true',
|
||||
'meta_hscan_dumpsys_ok' => 'false',
|
||||
'system_root_ign' => 'true',
|
||||
'system_individualdrivemode_vehicle_speed' => '27',
|
||||
'system_individualdrivemode_gear_status' => 'D(0x5)',
|
||||
'system_root_speed' => '27',
|
||||
'system_root_gear' => '5',
|
||||
// These persisted/default fields can disagree with the live root values
|
||||
// and must never drive the dashboard.
|
||||
'system_individualdrivemode_vehicle_speed' => '0',
|
||||
'system_individualdrivemode_gear_status' => 'P(0x0)',
|
||||
'system_root_mbatterysoc' => '93',
|
||||
'hev_micom_hevstatus_mdisplaysoc' => '255',
|
||||
'hev_micom_hevstatus_odometer' => '2596537',
|
||||
@@ -39,10 +43,10 @@ $summary = NiroTelemetrySnapshot::summarize([
|
||||
check($summary['available'] === true, 'snapshot is available');
|
||||
check($summary['online'] === true, 'availability topic is respected');
|
||||
check($summary['stale'] === false, 'fresh sample is not stale');
|
||||
check($summary['metric_count'] === 11, 'metric count excludes sample epoch');
|
||||
check($summary['metric_count'] === 13, 'metric count excludes sample epoch');
|
||||
check($summary['services'] === ['available' => 1, 'total' => 2], 'service health is counted');
|
||||
check($summary['metrics']['speed']['value'] === '27', 'speed mapping');
|
||||
check($summary['metrics']['gear']['value'] === 'D(0x5)', 'gear mapping');
|
||||
check($summary['metrics']['gear']['value'] === '5', 'live root gear mapping');
|
||||
check($summary['metrics']['outside_temperature']['value'] === '25.0', 'climate mapping');
|
||||
check($summary['metrics']['driver_door']['supported'] === true, 'zero is supported');
|
||||
check($summary['metrics']['distance_to_empty']['supported'] === false, 'missing value is unsupported');
|
||||
|
||||
Reference in new issue
Block a user