mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 16:35:49 +02:00
[PR #161] Add tire life tracking and display in telemetry and leaderboard #185
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#185
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/161
Author: @KoenvanWijlick
Created: 1/9/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
e8d3a95Add tire life tracking and display in telemetry and leaderboard📊 Changes
3 files changed (+63 additions, -21 deletions)
View changed files
📝
src/f1_data.py(+25 -15)📝
src/interfaces/race_replay.py(+16 -2)📝
src/ui_components.py(+22 -4)📄 Description
Tire Life Tracking in Race Replay
Summary
Adds tire life tracking and display to the race replay, showing tire age for each driver in the leaderboard component. Tire data is now collected from the FastF1 API, processed through the telemetry pipeline, and displayed alongside each driver's tire compound indicator.
Changes
Data Collection (
src/f1_data.py)TyreLifedata from lap telemetry (represents actual tire age in laps)tyre_life_allarray to store tire life values per telemetry pointtyre_lifefield to the frame data structure for each driverUI Display (
src/ui_components.py)L{age}format in the leaderboard (e.g.,L5for 5 laps on current tires)tyre_life - 1(
TyreLiferepresents the lap being driven, not laps completed)Race Replay Integration (
src/interfaces/race_replay.py)Visual Example
The leaderboard now displays:
Where
L5indicates the driver has completed 5 laps on their current set of tires.Technical Notes
0laps if tire life data is unavailable🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.