Good day, I am actually a newbie on AC python. I was wondering what's the logic behind a logger that writes on a .txt each transit onto a specific point of the track (specified in the code). I found an app that logs info when a key is pressed, so I think it won't be hard to understand how to log information when the car crosses e.g. the position 0.23 (NormalizedSplinePosition). I tried to do so with an if statement inside acUpdate, but I am failing my attempts. Can anyone give me tips? Thanks a lot.
using spline pos (and internaly 'virtual' sectors) https://www.racedepartment.com/downloads/splits-app.5478/ another: https://www.racedepartment.com/downloads/rivali-tempo.1585/
Thank you for the quick reply. My question was concerning creating a custom application to log information in pre-set points (eg. Regularity rallies). I was trying to understand the code. Can I do it with ifs in the acUpdate? I'm not new into programming, but I have to understand how the functions run.
you must keep track when a sector is finished edit: you must give it a range, it might not be exact ==0.25 or something, and when you round, you have the same result for some time https://www.racedepartment.com/downloads/linear-map-rally-style.38027/
You are right. I have to work within a range. I fixed the code and I managed to make it work as I wished.