The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
logging distance, speed, acceleration data - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Feature Requests (https://www.vdrift.net/Forum/forumdisplay.php?fid=6) +--- Thread: logging distance, speed, acceleration data (/showthread.php?tid=1525) |
logging distance, speed, acceleration data - meaton1969 - 07-11-2011 I am a high school Physics and Math teacher and am interested in using VDrift to teach my students how to interpret distance-time, velocity-time, and acceleration-time graphs. Has anyone attempted to make the VTech software report time, distance, velocity, and acceleration in a format to be imported to an Excel file? - NaN - 07-11-2011 Hi Quote:to make the VTech software reportWhat is VTech? Quote:teach my students how to interpretYou mean along current movement direction(scalar values)? Some info: Vdrift is using the Bullet Physics engine for the simulation. This means you have a first-order integrator(semi implicit euler). It is oblivious of acceleration as such, but the value can be calculated from the velocity delta of course. How are your programming skills? I could hack a patch to enable logging in form of a comma-separated values file(csv): Acc,Vel,Dist 0,0,0 ... - meaton1969 - 07-11-2011 You mean along current movement direction(scalar values)? Yes How are your programming skills? I could hack a patch to enable logging in form of a comma-separated values file(csv): Acc,Vel,Dist 0,0,0 My programming skills are almost nonexistant but I may be able to find someone that can do some programming. The csv file sounds great! Could you add a value for time in seconds? - NaN - 07-11-2011 Quote:programming skills are almost nonexistantThat's OK. I will upload a binary(for windows?). - meaton1969 - 07-12-2011 Yes Windows. Thanks. - NaN - 07-12-2011 Windows build with two cars and two tracks(I'll upload the patch to github): http://www.gamefront.com/files/20543976/vdrift-log.zip To run with logging use vdrift-log.bat. It starts vdrift with: Code: vdrift -motion-log 30 30 is the sampling frequency. The simulation runs at 90Hz. Thus the sampling frequency is restricted to 1-90Hz. Additionally the sampling period is truncated to be multiple of the simulation time step. The output is written into log.txt in the executable directory. It contains the forward acceleration, velocity and distance samples in car reference frame. - meaton1969 - 07-13-2011 Wow! Thank you very much! |