Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Branch for driver-training project
12-02-2010, 10:05 AM,
#4
 
Now there is a metric type called "FullStop" which waits for the driver to go over 60 MPH, then tells the driver to stop. When the car comes to a complete stop then the reaction time and stopping time are displayed. To enable it, just put this in your data.config:
Code:
[datalog]
enabled = true
frequency = 60
columns = Time, Velocity, Throttle, Brake
name = playercarlog

[datametrics]
load_order = ComeToFullStop

[datametric.ComeToFullStop]
type = FullStop
description = Report on driver's stopping performance
required_columns = Time, Brake, Velocity

I also wrote a script to generate new DATAMETRIC-derived classes from a template. To use it, do something like this:
Code:
cd tools/scripts/datametric_generator
python create_new_metric.py "Full Stop"
Reply


Messages In This Thread
Branch for driver-training project - by thelusiv - 11-13-2010, 12:08 AM
[No subject] - by thelusiv - 12-02-2010, 03:15 AM
[No subject] - by thelusiv - 12-02-2010, 03:24 AM
[No subject] - by thelusiv - 12-02-2010, 10:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)