Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
logging distance, speed, acceleration data
07-11-2011, 10:46 AM
Post: #1
logging distance, speed, acceleration data
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?
Find all posts by this user
Quote this message in a reply
07-11-2011, 02:52 PM
Post: #2
 
Hi

Quote:to make the VTech software report
What is VTech?

Quote:teach my students how to interpret
distance-time, velocity-time, and acceleration-time graphs
You 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
...
Find all posts by this user
Quote this message in a reply
07-11-2011, 05:25 PM
Post: #3
 
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?
Find all posts by this user
Quote this message in a reply
07-11-2011, 06:27 PM
Post: #4
 
Quote:programming skills are almost nonexistant
That's OK. I will upload a binary(for windows?).
Find all posts by this user
Quote this message in a reply
07-12-2011, 09:14 AM
Post: #5
 
Yes Windows.

Thanks.
Find all posts by this user
Quote this message in a reply
07-12-2011, 05:17 PM
Post: #6
 
Windows build with two cars and two tracks(I'll upload the patch to github): In order to view links, you must have to reply to this thread.

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.
Find all posts by this user
Quote this message in a reply
07-13-2011, 11:36 AM
Post: #7
 
Wow!

Thank you very much!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)