TORCS
1.3.9
The Open Racing Car Simulator
differential.h
Go to the documentation of this file.
1
/***************************************************************************
2
3
file : differential.h
4
created : Sun Mar 19 00:06:46 CET 2000
5
copyright : (C) 2000 by Eric Espie
6
email : torcs@free.fr
7
version : $Id$
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
***************************************************************************/
19
20
#ifndef _DIFFERENTIAL_H_
21
#define _DIFFERENTIAL_H_
22
23
typedef
struct
24
{
25
tdble
spinVel
;
26
tdble
Tq
;
27
tdble
brkTq
;
28
tdble
I
;
29
}
tDynAxis
;
30
31
typedef
struct
32
{
33
/* caracteristics */
34
int
type
;
35
#define DIFF_NONE 0
36
#define DIFF_SPOOL 1
37
#define DIFF_FREE 2
38
#define DIFF_LIMITED_SLIP 3
39
#define DIFF_VISCOUS_COUPLER 4
40
tdble
ratio
;
41
tdble
I
;
42
tdble
efficiency
;
43
tdble
dTqMin
;
44
tdble
dTqMax
;
45
tdble
dSlipMax
;
46
tdble
lockInputTq
;
47
tdble
lockBrakeInputTq
;
48
tdble
viscosity
;
49
50
/* dynamic data */
51
tDynAxis
in
;
52
tDynAxis
feedBack
;
53
tDynAxis
*inAxis[2];
54
tDynAxis
*outAxis[2];
55
}
tDifferential
;
56
57
58
59
#endif
/* _DIFFERENTIAL_H_ */
60
61
62
tDifferential::dTqMin
tdble dTqMin
Definition:
differential.h:43
tDifferential::I
tdble I
Definition:
differential.h:41
tDifferential::dSlipMax
tdble dSlipMax
Definition:
differential.h:45
tDifferential::ratio
tdble ratio
Definition:
differential.h:40
tDifferential::type
int type
Definition:
differential.h:34
tDynAxis::spinVel
tdble spinVel
Definition:
differential.h:25
tDifferential::efficiency
tdble efficiency
Definition:
differential.h:42
tdble
float tdble
Floating point type used in TORCS.
Definition:
tgf.h:48
tDifferential::viscosity
tdble viscosity
Definition:
differential.h:48
tDynAxis::brkTq
tdble brkTq
Definition:
differential.h:27
tDifferential::lockBrakeInputTq
tdble lockBrakeInputTq
Definition:
differential.h:47
tDynAxis::Tq
tdble Tq
Definition:
differential.h:26
tDifferential
Definition:
differential.h:31
tDifferential::dTqMax
tdble dTqMax
Definition:
differential.h:44
tDifferential::in
tDynAxis in
Definition:
differential.h:51
tDifferential::lockInputTq
tdble lockInputTq
Definition:
differential.h:46
tDynAxis::I
tdble I
Definition:
differential.h:28
tDifferential::feedBack
tDynAxis feedBack
Definition:
differential.h:52
tDynAxis
Definition:
differential.h:23
src
modules
simu
simuv2
differential.h
Generated by
1.8.14