TORCS  1.3.9
The Open Racing Car Simulator
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 
22 typedef struct
23 {
30 } tBrake;
31 
32 typedef 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 */
41 } tBrakeSyst;
42 
43 
44 
45 #endif /* _BRAKE_H_ */
46 
47 
48 
tdble pressure
Definition: brake.h:24
Definition: brake.h:22
tdble coeff
Definition: brake.h:35
float tdble
Floating point type used in TORCS.
Definition: tgf.h:48
tdble coeff
Definition: brake.h:26
tdble Tq
Definition: brake.h:25
tdble I
Definition: brake.h:27
int repCmdMaxClicks
Definition: brake.h:39
tdble radius
Definition: brake.h:28
tdble rep
Definition: brake.h:34
tdble repCmdClickValue
Definition: brake.h:40
tdble temp
Definition: brake.h:29