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
{
24
tdble
pressure
;
25
tdble
Tq
;
26
tdble
coeff
;
27
tdble
I
;
28
tdble
radius
;
29
tdble
temp
;
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
tBrake::pressure
tdble pressure
Definition:
brake.h:24
tBrake
Definition:
brake.h:22
tBrakeSyst::coeff
tdble coeff
Definition:
brake.h:35
tdble
float tdble
Floating point type used in TORCS.
Definition:
tgf.h:48
tBrakeSyst
Definition:
brake.h:32
tBrake::coeff
tdble coeff
Definition:
brake.h:26
tBrake::Tq
tdble Tq
Definition:
brake.h:25
tBrake::I
tdble I
Definition:
brake.h:27
tBrakeSyst::repCmdMaxClicks
int repCmdMaxClicks
Definition:
brake.h:39
tBrake::radius
tdble radius
Definition:
brake.h:28
tBrakeSyst::rep
tdble rep
Definition:
brake.h:34
tBrakeSyst::repCmdClickValue
tdble repCmdClickValue
Definition:
brake.h:40
tBrake::temp
tdble temp
Definition:
brake.h:29
src
modules
simu
simuv2
brake.h
Generated by
1.8.14