🏎️ PitGPT — Real-Time TRD Race Strategy From Telemetry

PitGPT transforms Toyota GR Cup telemetry into real-time pit-lane strategy.
Instead of static dashboards, PitGPT behaves like a TRD race engineer, delivering actionable racing commands based on live data.


📡 Why PitGPT?

In spec racing, every car is identical — horsepower doesn’t win races, decisions do.
PitGPT answers the questions engineers make under pressure:

  • 🟢 When should we attack?
  • 🛑 When should we conserve tires?
  • 🎯 Which sector should the driver push?
  • 🦾 How should braking and throttle change this lap?
  • 🏁 Will a pit stop help or hurt track position?

These are delivered as pit radio–style commands, not charts.


📐 Key Racing Metrics (Mathematically Defined)

🛞 Tire Stress Index

Brake fade risk based on tire load + braking heat + steering wear:

$$ \text{TSI} = 0.4 \cdot \frac{p_{\text{brake}}}{p_{\text{max}}} + 0.35 \cdot \left|\frac{\theta_{\text{steer}}}{\theta_{\text{max}}}\right| + 0.25 \cdot \frac{\lvert a_y \rvert}{a_{y_{\text{max}}}} $$

🏎️ Overtake Risk Score

Identifies safe passing opportunities based on pace, traction, and throttle:

$$ \text{ORS} = 0.5 \cdot \Delta v + 0.3 \cdot \text{Throttle}_{\text{avg}} - 0.2 \cdot \text{LateralInstability} $$

🎯 Attack Window

Driver should push if decreasing lap time matches throttle consistency:

$$ \text{Attack} = \begin{cases} 1, & \text{if } \dfrac{d(\text{LapTime})}{dt} < 0 \text{ and } \text{Throttle}_{\text{consistency}} > 0.7 \ 0, & \text{otherwise} \end{cases} $$

Weather Grip Index

Grip decreases with rain, cold tires, and brake temperature:

$$ \text{WGI} = 1 - \left(0.6R + 0.3T_{\text{cold}} + 0.1B_{\text{hot}}\right) $$


📊 Telemetry Example: Tire Stress Rising

graph LR
A[Lap 1 - 42%] --> B[Lap 2 - 55%]
B --> C[Lap 3 - 63%]
C --> D[Lap 4 - 70%]
D --> E[Lap 5 - 79%]
E --> F[Lap 6 - 85%🔥]

> 🔥 **Lap 6 crosses 80%** → PitGPT issues a **brake fade warning** and a **conservation strategy.**

🤖 Powered by Gemini 3.0

Telemetry metrics are fed directly into Gemini using a TRD pit-lane prompt, producing short, actionable race radio commands, such as:

🎙️ “Car 78 — Balanced mode. Attack after Turn 4 exit. Brake 5% lighter. Maintain >70% throttle through Sector 2. No pit — pace improving.”

No charts. No spreadsheets.
Just commands.


🧠 Why This Matters

The GR Cup is a spec-series — all cars are equal.
Races are won by:

  • 🎯 Precision driver inputs
  • 🛞 Tire + brake management
  • ⏱️ Timing over raw speed
  • ⚡ Moment-to-moment adaptation

PitGPT democratizes elite TRD-style engineering, allowing any team or fan to understand the strategy behind winning.


🏁 Mission

PitGPT brings real-time TRD intelligence to every paddock, unlocking:

  • 📈 Driver development insights
  • ⚙️ Smarter race-day strategy
  • 👨‍🔧 Engineering decision support
  • 🎙️ Fan-level understanding of motorsport dynamics

AI shouldn’t just make drivers faster — it should make them smarter.


Built With

Share this project:

Updates