102 msg.subsystem =
"FDM";
114 msg.subsystem =
"FDM";
127 msg.subsystem =
"FDM";
140 msg.subsystem =
"FDM";
168 cerr <<
"Unrecognized message type." << endl;
211 buf << Property <<
'[' << index <<
']';
219 static double V1, V2, S;
223 V1 = V2 = S = X = 0.0;
226 double U1 = (double)rand() / RAND_MAX;
227 double U2 = (double)rand() / RAND_MAX;
231 S = V1 * V1 + V2 * V2;
232 }
while(S >= 1 || S == 0);
234 X = V1 * sqrt(-2 * log(S) / S);
236 X = V2 * sqrt(-2 * log(S) / S);
247 if (mach < 0)
return p;
249 return p*pow((1 + 0.2*mach*mach),3.5);
266 return p*166.92158009316827*pow(mach,7.0)/pow(7*mach*mach-1,2.5);
277 double A = qc /
p + 1;
278 double M = sqrt(5.0*(pow(A, 1. / 3.5) - 1));
281 for (
unsigned int i = 0;
i<10;
i++)
282 M = 0.8812848543473311*sqrt(A*pow(1 - 1.0 / (7.0*
M*
M), 2.5));
static const double StdDaySLsoundspeed
static constexpr double StdDaySLpressure
void PutMessage(const Message &msg)
Places a Message structure on the Message queue.
static unsigned int messageId
static double PitotTotalPressure(double mach, double p)
Compute the total pressure in front of the Pitot tube.
static char fgdef[6]
default text
static double MachFromImpactPressure(double qc, double p)
Compute the Mach number from the differential pressure (qc) and the static pressure.
static char halfint[5]
low intensity text
static std::queue< Message > Messages
static double GaussianRandomNumber(void)
static char highint[5]
highlights text
int SomeMessages(void) const
Reads the message on the queue (but does not delete it).
static char reset[5]
resets text properties
static char fgblue[6]
blue text
static char normint[6]
normal intensity text
static int gaussian_random_number_phase
static char fgred[6]
red text
static char fggreen[6]
green text
Message * ProcessNextMessage(void)
Reads the next message on the queue and removes it from the queue.
void disableHighLighting(void)
Disables highlighting in the console output.
static double VcalibratedFromMach(double mach, double p)
Calculate the calibrated airspeed from the Mach number.
void ProcessMessage(void)
Reads the message on the queue and removes it from the queue.
static const std::string JSBSim_version
static char underoff[6]
underline off
static double MachFromVcalibrated(double vcas, double p)
Calculate the Mach number from the calibrated airspeed.Based on the formulas in the US Air Force Airc...
static char underon[5]
underlines text
static const std::string needed_cfg_version
static char fgcyan[6]
cyan text
static std::string CreateIndexedPropertyName(const std::string &Property, int index)
JSBSim Message structure.