![]() |
torcs - 1.2.2 | ![]() |
00001 /*************************************************************************** 00002 00003 file : engine.h 00004 created : Sun Mar 19 00:07:07 CET 2000 00005 copyright : (C) 2000 by Eric Espie 00006 email : torcs@free.fr 00007 version : $Id: engine.h,v 1.7 2004/01/15 18:23:22 torcs Exp $ 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ***************************************************************************/ 00019 00020 #ifndef _ENGINE_H_ 00021 #define _ENGINE_H_ 00022 00023 typedef struct { 00024 tdble rads; 00025 tdble a; 00026 tdble b; 00027 } tEngineCurveElem; 00028 00029 typedef struct { 00030 tdble maxTq; 00031 int nbPts; 00032 tEngineCurveElem *data; 00033 } tEngineCurve; 00034 00035 typedef struct 00036 { 00037 tEngineCurve curve; 00038 tdble revsLimiter; 00039 tdble revsMax; 00040 tdble tickover; 00041 tdble I; 00042 tdble rads; /* revs in rad/s ... */ 00043 tdble Tq; /* output torque */ 00044 tdble fuelcons; 00045 tdble brakeCoeff; 00046 } tEngine; 00047 00048 #endif /* _ENGINE_H_ */ 00049 00050 00051