00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef _TRANSMISSION_H_
00027 #define _TRANSMISSION_H_
00028
00029 typedef struct
00030 {
00031 int gear;
00032 int gearMin;
00033 int gearMax;
00034 } tGearbox;
00035
00036 typedef struct
00037 {
00038 int state;
00039 #define CLUTCH_APPLIED 1
00040 #define CLUTCH_RELEASED 0
00041 #define CLUTCH_RELEASING 2
00042 int mode;
00043 #define CLUTCH_AUTO 0
00044 #define CLUTCH_MANUAL 1
00045 tdble timeToRelease;
00046 tdble releaseTime;
00047 tdble transferValue;
00048 tdble plip;
00049 } tClutch;
00050
00051 typedef struct
00052 {
00053 tGearbox gearbox;
00054 tClutch clutch;
00055 int type;
00056 #define TRANS_RWD 0
00057 #define TRANS_FWD 1
00058 #define TRANS_4WD 2
00059 tdble overallRatio[MAX_GEARS];
00060 tdble driveI[MAX_GEARS];
00061 tdble freeI[MAX_GEARS];
00062 tdble gearEff[MAX_GEARS];
00063 tdble curOverallRatio;
00064 tdble curI;
00065
00066 #define TRANS_FRONT_DIFF 0
00067 #define TRANS_REAR_DIFF 1
00068 #define TRANS_CENTRAL_DIFF 2
00069 tDifferential differential[3];
00070 } tTransmission;
00071
00072
00073 #endif
00074
00075
00076