Draco
April 23rd, 2005, 02:15 PM
Hi guys,
I am working on a custom PID to calculate horsepower based on changes in Kinetic Energy of the car over time (like a dynojet works). I am trying to break up this PID into several pieces to make it easier to read, however I am having a bit of trouble with the value() function. I have a calculated PID which determines kinetic energy, and I am trying to determine the value of this PID, 10 frames in the past.
The pid calculates fine when I close the log file and re-open it after logging, however it will not calculate 'on the fly' while logging occurs.
So, does Value({CALC.PID}, frame) where frame is any frame in the past only work "offline"? I have the same problem with the dx() function, where it wont calculate the rate of change in Kinetic Energy, my calculated PID when logging. Perhaps calculated PIDs are not usable in these function if you want to seem them in real time?
Thanks guys, hope this question is clear enough.
I am working on a custom PID to calculate horsepower based on changes in Kinetic Energy of the car over time (like a dynojet works). I am trying to break up this PID into several pieces to make it easier to read, however I am having a bit of trouble with the value() function. I have a calculated PID which determines kinetic energy, and I am trying to determine the value of this PID, 10 frames in the past.
The pid calculates fine when I close the log file and re-open it after logging, however it will not calculate 'on the fly' while logging occurs.
So, does Value({CALC.PID}, frame) where frame is any frame in the past only work "offline"? I have the same problem with the dx() function, where it wont calculate the rate of change in Kinetic Energy, my calculated PID when logging. Perhaps calculated PIDs are not usable in these function if you want to seem them in real time?
Thanks guys, hope this question is clear enough.