Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Export/record user data
12-04-2011, 04:12 PM
Post: #1
Export/record user data
Hi,

I am trying to find a way to record user data in VDrift. With this I mean the user inputs (accelerator position, brake pedal position, steering angle,...) as well as the users car position (current track segment, exact track position, speed, de/acceleration, direction,...). Ideally I am trying to achieve something that outputs a text file for every completed lap but any other output would be great as well.

Is this possible in VDrift or any other racing simulation for that matter? Is it possible to record similar data for AI drivers?

Any pointers would be greatly appreciated.
Find all posts by this user
Quote this message in a reply
12-04-2011, 04:31 PM
Post: #2
 
Hi ls908.

You would have to write the logging code.

For example:
In CAR::CAR() constructor open a file for logging(use car pointer in file name to differentiate between cars).
In CAR::HandleInputs(..) log inputs vector and current cardynamics state.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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