Skip to content

fix(hud): playback ground speed + distinct goals-reached count - #21

Merged
transfix merged 1 commit into
mainfrom
fix/hud-speed-and-reached
Jul 27, 2026
Merged

fix(hud): playback ground speed + distinct goals-reached count#21
transfix merged 1 commit into
mainfrom
fix/hud-speed-and-reached

Conversation

@transfix

Copy link
Copy Markdown
Contributor

Two HUD-metric fixes flagged on the first-cut overlay:

  • speed — the HUD showed the sim-time speed (~77 m/s), not the pace the viewer sees. Now the on-screen ground speed: frame displacement × frame rate in the video capture, and frame displacement ÷ dt in the live demos (MetricsPublisher.publish(m, dt)).
  • reachedNavStats.goals_reached counted every per-frame reached flag, so a 4-goal drive read "reached 6". Now counts distinct goal indices (set-backed goals_reached property). Added test_goals_reached_counts_distinct_not_per_frame.

black + ruff clean; 16 tests pass.

- speed: the HUD showed the sim-time speed (~77 m/s), not the pace the viewer sees. Now
  reported as the on-screen ground speed — frame displacement x frame rate in the video
  capture, and frame displacement / dt in the live demos (MetricsPublisher.publish(m, dt)).
- reached: NavStats.goals_reached counted every per-frame reached flag (so a 4-goal drive
  read 'reached 6'). Now counts DISTINCT goal indices via a set. Added a test.
@transfix
transfix merged commit f626eaf into main Jul 27, 2026
1 check passed
@transfix
transfix deleted the fix/hud-speed-and-reached branch July 27, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant