mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[PR #217] Add Race Incidents & Overtakes Tracker #226
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/217
Author: @Anipaleja
Created: 2/4/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (4)
b349d15Added Incident Detection Module55b06e6Added Incident Detection Feature73f3d39Added Incident Detection Modules35a30fdMerge branch 'main' into main📊 Changes
5 files changed (+766 additions, -1 deletions)
View changed files
➕
src/incident_detection.py(+260 -0)📝
src/interfaces/race_replay.py(+42 -1)➕
src/ui_components_incidents.py(+209 -0)➕
tests/__init__.py(+1 -0)➕
tests/test_incidents.py(+254 -0)📄 Description
Description
This PR adds a real-time incident detection system that automatically identifies key moments during F1 races—overtakes, near-misses, and pit stops. Users can now navigate through these moments instantly with keyboard shortcuts, making it easier to review critical race events without scrubbing through the entire replay.
Key Features:
N/Pto jump between incidents,Cto toggle the panel,Fto filter by incident typeHow it works:
The system analyzes telemetry data once at startup to build an incidents list. Each incident stores the frame number, lap, involved drivers, and type. When users navigate with
NorP, the replay automatically jumps to that moment and pauses, allowing them to watch the action unfold.Technical improvements:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.