39 #ifndef FGTRANSMISSION_H 40 #define FGTRANSMISSION_H 46 #include "FGJSBBase.h" 47 #include "FGFDMExec.h" 48 #include "input_output/FGPropertyManager.h" 54 #define ID_TRANSMISSION "$Id: FGTransmission.h,v 1.1 2012/02/25 14:37:02 jentron Exp $" 126 void Calculate(
double EnginePower,
double ThrusterTorque,
double dt);
128 void SetMaxBrakePower(
double x) {MaxBrakePower=x;}
129 double GetMaxBrakePower()
const {
return MaxBrakePower;}
130 void SetEngineFriction(
double x) {EngineFriction=x;}
131 double GetEngineFriction()
const {
return EngineFriction;}
132 void SetEngineMoment(
double x) {EngineMoment=x;}
133 double GetEngineMoment()
const {
return EngineMoment;}
134 void SetThrusterMoment(
double x) {ThrusterMoment=x;}
135 double GetThrusterMoment()
const {
return ThrusterMoment;}
137 double GetFreeWheelTransmission()
const {
return FreeWheelTransmission;}
138 void SetEngineRPM(
double x) {EngineRPM=x;}
139 double GetEngineRPM() {
return EngineRPM;}
140 void SetThrusterRPM(
double x) {ThrusterRPM=x;}
141 double GetThrusterRPM() {
return ThrusterRPM;}
143 double GetBrakeCtrlNorm()
const {
return BrakeCtrlNorm;}
144 void SetBrakeCtrlNorm(
double x) {BrakeCtrlNorm=x;}
145 double GetClutchCtrlNorm()
const {
return ClutchCtrlNorm;}
146 void SetClutchCtrlNorm(
double x) {ClutchCtrlNorm=x;}
149 bool BindModel(
int num);
150 void Debug(
int from);
152 inline double omega_to_rpm(
double w) {
153 return w * 9.54929658551372014613302580235;
155 inline double rpm_to_omega(
double r) {
156 return r * 0.104719755119659774615421446109;
160 double FreeWheelTransmission;
162 double ThrusterMoment;
164 double EngineFriction;
166 double ClutchCtrlNorm;
167 double BrakeCtrlNorm;
168 double MaxBrakePower;
Utility class that handles power transmission in conjunction with FGRotor.
FGTransmission(FGFDMExec *exec, int num, double dt)
Constructor for FGTransmission.
Encapsulates the JSBSim simulation executive.
~FGTransmission()
Destructor for FGTransmission.