[PR #283] Add strategy insight windows for virtual position, undercut analysis, and DRS-train detection #272

Open
opened 2026-05-07 00:19:30 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/283
Author: @polcougar
Created: 4/26/2026
Status: 🔄 Open

Base: mainHead: strategy-insights


📝 Commits (1)

  • 24ffa4f Add strategy insight windows for pit rejoin and traffic analysis

📊 Changes

5 files changed (+764 additions, -0 deletions)

View changed files

📝 src/gui/insights_menu.py (+30 -0)
src/insights/drs_traffic_window.py (+139 -0)
src/insights/strategy_utils.py (+234 -0)
src/insights/undercut_overcut_window.py (+196 -0)
src/insights/virtual_position_window.py (+165 -0)

📄 Description

Summary

This PR adds three new strategy-focused insight windows to the replay tool:

  • Virtual Position
  • Undercut / Overcut
  • DRS Train / Traffic

It also adds shared analysis helpers for strategy views and wires the new windows into the Insights menu.

New Windows

Virtual Position

Estimates where a selected driver would rejoin after a pit stop using a configurable pit-loss assumption and a field reference speed.

Undercut / Overcut

Compares two drivers using current gap, tyre age, recent pace trend, and projected rejoin traffic to support stop-first vs stay-out analysis.

DRS Train / Traffic

Detects multi-car trains, highlights local traffic, and surfaces whether a selected driver is trapped in a DRS queue.

Notes

These are heuristic strategy tools built from the existing telemetry stream payload and do not require new upstream data sources.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/283 **Author:** [@polcougar](https://github.com/polcougar) **Created:** 4/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `strategy-insights` --- ### 📝 Commits (1) - [`24ffa4f`](https://github.com/IAmTomShaw/f1-race-replay/commit/24ffa4f7fe451adce23675d61eebd49685feb25e) Add strategy insight windows for pit rejoin and traffic analysis ### 📊 Changes **5 files changed** (+764 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/gui/insights_menu.py` (+30 -0) ➕ `src/insights/drs_traffic_window.py` (+139 -0) ➕ `src/insights/strategy_utils.py` (+234 -0) ➕ `src/insights/undercut_overcut_window.py` (+196 -0) ➕ `src/insights/virtual_position_window.py` (+165 -0) </details> ### 📄 Description ## Summary This PR adds three new strategy-focused insight windows to the replay tool: - Virtual Position - Undercut / Overcut - DRS Train / Traffic It also adds shared analysis helpers for strategy views and wires the new windows into the Insights menu. ## New Windows ### Virtual Position Estimates where a selected driver would rejoin after a pit stop using a configurable pit-loss assumption and a field reference speed. ### Undercut / Overcut Compares two drivers using current gap, tyre age, recent pace trend, and projected rejoin traffic to support stop-first vs stay-out analysis. ### DRS Train / Traffic Detects multi-car trains, highlights local traffic, and surfaces whether a selected driver is trapped in a DRS queue. ## Notes These are heuristic strategy tools built from the existing telemetry stream payload and do not require new upstream data sources. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
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.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#272
No description provided.