We assume that you're successful to build the sample controller following the instructions.

When you run the TORCS and the client executable files, you will see the following scenes.

The Adobe Flash Plugin is needed to display this content.

accel=1.0; brake=0.0; 
  

The Adobe Flash Plugin is needed to display this content.

double target_speed=100; 
double actual_speed=cs.getSpeedX(); 
accel=0; 
if(target_speed-actual_speed>0) accel=(target_speed-actual_speed)/20; 
if(target_speed-actual_speed>20) accel=1; 
brake=0; 

The Adobe Flash Plugin is needed to display this content.

* Tutorial 4

steer=0; 
accel=1; 
brake=0;

The Adobe Flash Plugin is needed to display this content.

double target_pos=0; 
double actual_pos=cs.getTrackPos(); 
double angle=cs.getAngle(); 
double error = target_pos - actual_pos; 
angle = angle + error; 
steer = angle/steerLock; 

The Adobe Flash Plugin is needed to display this content.