HOW TO RUN THE DAYTONA CREDIT GRIND
=====================================

Runs automatically overnight. Earns credits on repeat with zero input from you.
No lap recording needed. Just full throttle and auto menu navigation.

BEFORE YOU START:
-----------------
1. Pico plugged into PS4 via USB hub
2. SimHub open → UDP Forwarder → 127.0.0.1:33741
3. GT7 open

SET UP THE RACE IN GT7:
------------------------
1. Go to Races
2. Select the Daytona race (the credit grind one)
3. Pick your car — anything works, the bot just holds full throttle
4. Set all driving assists ON:
   - ABS: Strong
   - Traction Control: Strong  
   - Stability Management: On
   - Automatic Transmission
5. Get to the race start screen — ready to go but don't start yet

START THE BOT:
--------------
1. Open Command Prompt:
   cd C:\Users\shrut\gt7bot
   python gui.py

2. Click Connect — both dots go green

3. Start the race in GT7

4. Click the orange DAYTONA GRIND button in the GUI

The bot will:
- Hold full throttle (R2 = 100%)
- Apply a tiny steering lean to stay against the outer wall
- Race automatically

AFTER THE RACE:
---------------
The bot detects when the race ends (speed drops to near zero)
Then automatically:
- Waits for results screen to load
- Presses Cross to clear results and prize screens
- Presses Down then Cross to select Retry
- Race restarts and loops forever

TUNING IF NEEDED:
-----------------
If the car drifts inward or outward on the oval, open config.py and adjust:
   STEER_LEAN = 0.04   (increase if drifting inward, decrease if hitting wall)

If the menu navigation misses a screen, the timing may need adjusting.
Open gui.py and find _daytona_navigate() — adjust the wait times there.

TO STOP:
--------
Click the Stop Grind button in the GUI
Or press Ctrl+C in Command Prompt

LEAVE IT OVERNIGHT:
-------------------
Once it's running and looping correctly just leave it.
It will run until you stop it or GT7 crashes.
Check back in the morning to collect your credits.
