After
getting to know the library a bit I hooked up the sector times, and made it
collect the last sectors of the last 5 laps, and made it send the data to an
LLM through OpenRouter which tells me where I’m losing time. I added a TTS with a filter to make it a bit more
belivable but that didn’t really work out. Still it was kinda cool to hear that
info automaticly
After that
I wanted to build a spotter — like “car left” “car right”
when someone’s alongside. this is where things got painful the shared memory
gives you every car’s position and orientation but figuring out the orientation
matrix with ZERO documentation was rough.
eventually
I looked at how TinyPedal (another open source project using the same system)
handles it, adopted their approach, added debouncing so it doesn’t scream LEFT
20 times a second. I tried everything but I couldn’t get it quite right so I
used ai to help me but I didn’t want it
to write the code for, just to point me in the right direction and it was still
broken. So after a fair bit of playing around I finally got it sort of working
so current
state: I have an AI race engineer AND (kind of) a spotter… but neither is
connected to discord yet which is supposed to be the whole point. but I
actually understand the shared memory system now which was the goal. The
discord bot part is next ^_^
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.