Hey
I had a quick look through the python code and noticed that while KERS activation is being logged, P2P activation is not. In AC both are bound to the KERS activation button, but I'm missing some crucial telemetry around P2P to better understand which laps can be compared fairly.
class SPageFilePhysics(ctypes.Structure):
_pack_ = 4
_fields_ = [
#...
('P2PActivations', c_int32),
('P2PStatus', c_int32),
('currentMaxRpm', c_int32),
]
class SPageFileGraphics(ctypes.Structure):
_pack_ = 4
_fields_ = [
#...
('timeLimitSessionLeft', c_float),
('isEscMenuVisible', c_int32),
]
Yep those are static, from shared mem part thats also called like that:Hi,
is it correct that at maximum power and maximum torque there is only a static value at the beginning of the session? These values are not changing and seems to be wrong compare to the car description.
ac.getCarState(0, acsys.AERO.CD )
ac.getCarState(0, acsys.AERO.CL_Front)
ac.getCarState(0, acsys.AERO.CL_Rear)
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.AERO.CD ))
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.AERO.CL_Front))
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.AERO.CL_Rear))
yes, I mean acti.why is there a static max power? isnt power a product of torque and rpm, a derived variable?
...btw, are we talking about acti? i seem to have a hard time understanding what you are talking about.
Okay thanks, so out of the box I can't change the values to realtime values?Yep those are static, from shared mem part thats also called like that:
info.static.maxTorque, info.static.maxPower (the latter as *1000?), the max values the car can produce. You can put anything you want into the description "ui\ui_car.json", the car might have different data in "data.acd" or "data" folder
Hint: CustomShadersPatch adds a function ac.ext_getCurrentTorque()
edit: power is in watts, div by 745.7 for HP, torque is Nm as expected; this unfortunately for player car only
Those three mentioned in post #486 are pretty much useless, and also all there is, only with csp you'd get 2 more, f/r downforce and drag, thats prob. not worth the effortSo, was the Aero values ever something that can be added to ACTI, or is it still not happening?
replace what i said in post #486, file: assettocorsa\apps\python\acti\acti.pywhat would be the procedure to enable drag and lift stats? i think they might be useful for me.
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.CS.Aero, 0))
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.CS.Aero, 1))
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.CS.Aero, 2))
same result without the numbersbeen reading ac stuff for hours.
it would seem, that your suggestion is also wrong. it does not match the pattern in the file, nor the acpython documentation.
id think it should be like this:
PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.CS.Aero, 0)) PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.CS.Aero, 1)) PackingString += "f"; PackingList.append(ac.getCarState(0, acsys.CS.Aero, 2))
i might be wrong, as the available data is not good at all, to make a proper conclusion.
i havent tried it. will do it some of those days. maybe
I fully understand this. I actually meant to ask what the possibility is we'd be able to get an update to include P2P?In current state the app handing out data is missing 5 additional props in "sim_info.py". Its not enough to add those, you still have to add code to the app itself too and also into the ACTI program itself i guess:
class SPageFilePhysics(ctypes.Structure): _pack_ = 4 _fields_ = [ #... ('P2PActivations', c_int32), ('P2PStatus', c_int32), ('currentMaxRpm', c_int32), ]
class SPageFileGraphics(ctypes.Structure): _pack_ = 4 _fields_ = [ #... ('timeLimitSessionLeft', c_float), ('isEscMenuVisible', c_int32), ]