Synthetic sector times #22

Closed
opened 2026-10-19 20:42:16 +00:00 by mintopia · 2 comments
Owner

What to build

S1 / S2 / S3 columns, F1 style, built in the page from data the feed already has (no sectors in the game).

  • Each lap is split into thirds of race distance (dist fraction). The page records the lap time at which each racer crosses 1/3 and 2/3 of the lap and the line, interpolating between the 5 Hz samples.
  • Only laps the page watched from the start get sector times; otherwise —.
  • Colours as in t2 per sector: purple = fastest that sector in the race, green = racer's best that sector, yellow otherwise.
  • Times only, no bars under them. A divider sits before S1.
  • Hidden below about 900 px wide (with MPH and MODS).

Acceptance criteria

  • Each racer shows S1–S3 for the current/last lap, filling in as they cross each third
  • Sector times of a lap sum to that lap's time within ~0.1 s
  • Purple/green/yellow follow the rules per sector
  • Joining mid-lap shows — until the next full lap

Blocked by

## What to build S1 / S2 / S3 columns, F1 style, built in the page from data the feed already has (no sectors in the game). - Each lap is split into thirds of race distance (`dist` fraction). The page records the lap time at which each racer crosses 1/3 and 2/3 of the lap and the line, interpolating between the 5 Hz samples. - Only laps the page watched from the start get sector times; otherwise `—`. - Colours as in t2 per sector: purple = fastest that sector in the race, green = racer's best that sector, yellow otherwise. - Times only, no bars under them. A divider sits before S1. - Hidden below about 900 px wide (with MPH and MODS). ## Acceptance criteria - [ ] Each racer shows S1–S3 for the current/last lap, filling in as they cross each third - [ ] Sector times of a lap sum to that lap's time within ~0.1 s - [ ] Purple/green/yellow follow the rules per sector - [ ] Joining mid-lap shows `—` until the next full lap ## Blocked by - #21
Author
Owner

Added S1/S2/S3 columns to examples/live-timing/index.html. Page records interpolated crossings of each third of dist against race_ms; sectors only for laps whose line crossing was seen (mid-lap join shows — until next lap). Purple/green/yellow per sector, divider before S1, hidden <900px with MODS/MPH. Node check: steady 90 s lap gives 3x30000 ms summing to 90000; mid-lap join gives no partial lap. README updated.

Added S1/S2/S3 columns to examples/live-timing/index.html. Page records interpolated crossings of each third of `dist` against `race_ms`; sectors only for laps whose line crossing was seen (mid-lap join shows — until next lap). Purple/green/yellow per sector, divider before S1, hidden <900px with MODS/MPH. Node check: steady 90 s lap gives 3x30000 ms summing to 90000; mid-lap join gives no partial lap. README updated.
Author
Owner

Completed and merged by Harmonic (task 23).

Completed and merged by Harmonic (task 23).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
Reference
mintopia/blur#22
No description provided.