Automatic Speed Limiter

foxo

50RPM
Apr 11, 2009
72
25
29
that's the torque, he want's a speed limiter, like they usually install on many cars (250km/h).
I remember Lipton was experementing this in some of his cars.
 
T

Tiberius

I wouldn't answer this before because I wasn't sure if he meant pit limiters or something and I have no idea whether pit speed limits are actually working yet..

Speed limiters were fudged through the traction control, I don't have a car here with the code now but you basically set the min velocity where the control will become active (in meters/sec as I remember) to the speed where you want the limiter to cut in.

The downside is that you lose the traction control, this causes big problems with Racer's AI if the car has a lot of power and they end up doing donuts on every corner (fun to watch but totally useless to race against).

This was the code as I remember, you might need to jiggle the numbers about a bit:

Code:
traction_control
{
  enable=1
  max_velocity_ratio=1.01 ;these min/max numbers really depend on the tyre pacejka
  min_velocity_ratio=1.00
  min_velocity=70 ; speed at which the limiter cuts in, in m/s
}
 

Miura

25RPM
Apr 3, 2009
32
0
I think he meant the ASL that can be enabled with F5 or "asl on" from the console. It limits speed to the AI line speed for the current car, so it's about 50 km/h by default. Recording a new line or editing the file manually should change the limit, but I haven't tried it.
 
T

tienzyee

Hey, Look at the code:
HTML:
    speedlimiter
    {
      axis=
      min=0
      max=1000
      button=5
      pov=-1
      negate=0
      make_analog=0
      linearity=1.000000
      sensitivity_rise=0.000000
      sensitivity_fall=0.000000
      key=
    }
I found this in the controller file. My guess is you can change the value of max and maybe the car speed will be limited?

I have yet to change the value and try my controller so it's all unconfirmed as of now. Besides, 1000 could mean the torque as someone mentioned before me.
 

Miura

25RPM
Apr 3, 2009
32
0
Those min and max values are just for the controller analog axis. For example, the brakes on my mouse controller originally had min=0 and max=1000, which means the brakes start working with the cursor in the middle of the screen and reach full power with the cursor at the bottom. I changed that to min=100 and max=800, so there's some deadzone in the middle and bottom.

I'm not sure if that speedlimiter control ever did anything. If it does, it's probably an on/off switch, so the axis wouldn't be of any use.