TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
brake.h
Go to the documentation of this file.
1/***************************************************************************
2
3 file : brake.h
4 created : Sun Mar 19 00:05:34 CET 2000
5 copyright : (C) 2000-2024 by Eric Espie, Bernhard Wymann
6 email : berniw@bluewin.ch
7
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#ifndef _BRAKE_H_
20#define _BRAKE_H_
21
31
32typedef struct
33{
34 tdble rep; /* front/rear repartition, 1.0 means all to front, 0.0 all to rear*/
35 tdble coeff; /* coefficient to convert brake command [0..1] into pressure */
36 // Brake repartition adjustment during driving, e.g. 4 clicks with a value of 0.5 would make 2 percent to the front
37 // This is used in real world to account change like tire wear, track rubbing in or even on a turn by turn adjustment
38 // depending on the track
39 int repCmdMaxClicks; /* brake repartition maximum clicks, is multiplied with the value below */
40 tdble repCmdClickValue; /* brake repartition adjustment per click */
42
43
44
45#endif /* _BRAKE_H_ */
46
47
48
float tdble
Floating point type used in TORCS.
Definition tgf.h:47
Definition brake.h:23
tdble Tq
Definition brake.h:25
tdble pressure
Definition brake.h:24
tdble radius
Definition brake.h:28
tdble coeff
Definition brake.h:26
tdble I
Definition brake.h:27
tdble temp
Definition brake.h:29
int repCmdMaxClicks
Definition brake.h:39
tdble coeff
Definition brake.h:35
tdble repCmdClickValue
Definition brake.h:40
tdble rep
Definition brake.h:34