Merge pull request #60 from AmanTahiliani/feat/issue-19-auto-chapter-detection-rc-position-swing

Auto-chapter detection (RC + position swings) (#19)
This commit is contained in:
Aman Tahiliani
2026-07-11 18:06:33 -04:00
committed by GitHub
8 changed files with 940 additions and 0 deletions

View File

@@ -91,6 +91,17 @@ export interface RaceHub {
race_control: RaceControlMessage[]
weather: WeatherSample[]
laps: Lap[]
chapters: Chapter[]
}
export interface Chapter {
kind: 'start' | 'safety_car' | 'virtual_safety_car' | 'red_flag' | 'pit_phase' | 'decisive_swing' | 'finish' | string
title: string
start_lap: number
end_lap: number
start_time?: string
end_time?: string
driver_numbers: number[]
}
export interface Stint {