• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

AC Python Documentation missing identifier

Hi,

I am playing with an assetto corsa app to see what kind of signals I can extract form the game and see how well the simulation works.

I was trying to get the lateral friction coefficient for each tyre, I see that it should be possible to read it with the Dy indentifier :

dy = ac.getCarState(ac.getFocusedCar(), acsys.CS.Dy)

but when I try, it says that no such thing exists ("type Object CS has no attribute Dy"). I have the same problem with the ThermalState identifier.

I was able to get to every other signal I wanted.

Is it possible to extract those two or am I missing something?
 

fughettaboutit

aka leBluem aka Please Stop This
it gives back 4 values at once, and its uppercase CS.DY
car= ac.getFocusedCar()
dyFl, dyFr, dyRl, dyRr = ac.getCarState(car, acsys.CS.DY)
 
Great, with DY it works. Of course, there is no problem in just using one variable to store all the four components.

I have to signal that in Python SDK I found on this website the identifier is wrong: Dy.

What about ThermalState? I have the same problem, it might again be a problem in how the identifier is spelled.
 

fughettaboutit

aka leBluem aka Please Stop This
ye, the py doc is wrong about that

CS.CurrentTyresCoreTemp
CS.LastTyresTemp

see ...assettocorsa\apps\python\system\acsys.py
 
Top