]> git.mxchange.org Git - flightgear.git/blob - src/FDM/JSBSim/models/FGAuxiliary.cpp
056c1c07e061a83dfd040f35a13fdbc341c073f8
[flightgear.git] / src / FDM / JSBSim / models / FGAuxiliary.cpp
1 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
3  Module:       FGAuxiliary.cpp
4  Author:       Tony Peden, Jon Berndt
5  Date started: 01/26/99
6  Purpose:      Calculates additional parameters needed by the visual system, etc.
7  Called by:    FGSimExec
8
9  ------------- Copyright (C) 1999  Jon S. Berndt (jsb@hal-pc.org) -------------
10
11  This program is free software; you can redistribute it and/or modify it under
12  the terms of the GNU General Public License as published by the Free Software
13  Foundation; either version 2 of the License, or (at your option) any later
14  version.
15
16  This program is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
19  details.
20
21  You should have received a copy of the GNU General Public License along with
22  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
23  Place - Suite 330, Boston, MA  02111-1307, USA.
24
25  Further information about the GNU General Public License can also be found on
26  the world wide web at http://www.gnu.org.
27
28 FUNCTIONAL DESCRIPTION
29 --------------------------------------------------------------------------------
30 This class calculates various auxiliary parameters.
31
32 REFERENCES
33   Anderson, John D. "Introduction to Flight", 3rd Edition, McGraw-Hill, 1989
34                     pgs. 112-126
35 HISTORY
36 --------------------------------------------------------------------------------
37 01/26/99   JSB   Created
38
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40 INCLUDES
41 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
42
43 #include "FGAuxiliary.h"
44 #include "FGAerodynamics.h"
45 #include "FGPropagate.h"
46 #include "FGAtmosphere.h"
47 #include <FGState.h>
48 #include <FGFDMExec.h>
49 #include "FGAircraft.h"
50 #include "FGInertial.h"
51 #include <input_output/FGPropertyManager.h>
52
53 namespace JSBSim {
54
55 static const char *IdSrc = "$Id$";
56 static const char *IdHdr = ID_AUXILIARY;
57
58 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 CLASS IMPLEMENTATION
60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
61
62
63 FGAuxiliary::FGAuxiliary(FGFDMExec* fdmex) : FGModel(fdmex)
64 {
65   Name = "FGAuxiliary";
66   vcas = veas = pt = tat = 0;
67   psl = rhosl = 1;
68   earthPosAngle = 0.0;
69   qbar = 0;
70   qbarUW = 0.0;
71   qbarUV = 0.0;
72   Mach = 0.0;
73   alpha = beta = 0.0;
74   adot = bdot = 0.0;
75   gamma = Vt = Vground = 0.0;
76   psigt = 0.0;
77   day_of_year = 1;
78   seconds_in_day = 0.0;
79   hoverbmac = hoverbcg = 0.0;
80
81   vPilotAccel.InitMatrix();
82   vPilotAccelN.InitMatrix();
83   vToEyePt.InitMatrix();
84   vAeroPQR.InitMatrix();
85   vEulerRates.InitMatrix();
86
87   bind();
88
89   Debug(0);
90 }
91
92 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
93
94 FGAuxiliary::~FGAuxiliary()
95 {
96   unbind();
97   Debug(1);
98 }
99
100 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101
102 bool FGAuxiliary::Run()
103 {
104   double A,B,D, hdot_Vt;
105   const FGColumnVector3& vPQR = Propagate->GetPQR();
106   const FGColumnVector3& vUVW = Propagate->GetUVW();
107   const FGColumnVector3& vUVWdot = Propagate->GetUVWdot();
108   const FGColumnVector3& vVel = Propagate->GetVel();
109
110   if (FGModel::Run()) return true;
111   if (FDMExec->Holding()) return false;
112
113   p = Atmosphere->GetPressure();
114   rhosl = Atmosphere->GetDensitySL();
115   psl = Atmosphere->GetPressureSL();
116   sat = Atmosphere->GetTemperature();
117
118 // Rotation
119
120   double cTht = Propagate->GetCosEuler(eTht);
121   double cPhi = Propagate->GetCosEuler(ePhi);
122   double sPhi = Propagate->GetSinEuler(ePhi);
123
124   vEulerRates(eTht) = vPQR(eQ)*cPhi - vPQR(eR)*sPhi;
125   if (cTht != 0.0) {
126     vEulerRates(ePsi) = (vPQR(eQ)*sPhi + vPQR(eR)*cPhi)/cTht;
127     vEulerRates(ePhi) = vPQR(eP) + vEulerRates(ePsi)*sPhi;
128   }
129
130 // 12/16/2005, JSB: For ground handling purposes, at this time, let's ramp
131 // in the effects of wind from 10 fps to 30 fps when there is weight on the
132 // landing gear wheels.
133
134   if (GroundReactions->GetWOW() && vUVW(eU) < 10) {
135     vAeroPQR = vPQR;
136     vAeroUVW = vUVW;
137   } else if (GroundReactions->GetWOW() && vUVW(eU) < 30) {
138     double factor = (vUVW(eU) - 10.0)/20.0;
139     vAeroPQR = vPQR + factor*Atmosphere->GetTurbPQR();
140     vAeroUVW = vUVW + factor*Propagate->GetTl2b()*Atmosphere->GetWindNED();
141   } else {
142     vAeroPQR = vPQR + Atmosphere->GetTurbPQR();
143     vAeroUVW = vUVW + Propagate->GetTl2b()*Atmosphere->GetWindNED();
144   }
145
146   Vt = vAeroUVW.Magnitude();
147   if ( Vt > 0.05) {
148     if (vAeroUVW(eW) != 0.0)
149       alpha = vAeroUVW(eU)*vAeroUVW(eU) > 0.0 ? atan2(vAeroUVW(eW), vAeroUVW(eU)) : 0.0;
150     if (vAeroUVW(eV) != 0.0)
151       beta = vAeroUVW(eU)*vAeroUVW(eU)+vAeroUVW(eW)*vAeroUVW(eW) > 0.0 ? atan2(vAeroUVW(eV),
152              sqrt(vAeroUVW(eU)*vAeroUVW(eU) + vAeroUVW(eW)*vAeroUVW(eW))) : 0.0;
153
154     double mUW = (vAeroUVW(eU)*vAeroUVW(eU) + vAeroUVW(eW)*vAeroUVW(eW));
155     double signU=1;
156     if (vAeroUVW(eU) != 0.0)
157       signU = vAeroUVW(eU)/fabs(vAeroUVW(eU));
158
159     if ( (mUW == 0.0) || (Vt == 0.0) ) {
160       adot = 0.0;
161       bdot = 0.0;
162     } else {
163       adot = (vAeroUVW(eU)*vUVWdot(eW) - vAeroUVW(eW)*vUVWdot(eU))/mUW;
164       bdot = (signU*mUW*vUVWdot(eV) - vAeroUVW(eV)*(vAeroUVW(eU)*vUVWdot(eU)
165               + vAeroUVW(eW)*vUVWdot(eW)))/(Vt*Vt*sqrt(mUW));
166     }
167   } else {
168     alpha = beta = adot = bdot = 0;
169   }
170
171   qbar = 0.5*Atmosphere->GetDensity()*Vt*Vt;
172   qbarUW = 0.5*Atmosphere->GetDensity()*(vAeroUVW(eU)*vAeroUVW(eU) + vAeroUVW(eW)*vAeroUVW(eW));
173   qbarUV = 0.5*Atmosphere->GetDensity()*(vAeroUVW(eU)*vAeroUVW(eU) + vAeroUVW(eV)*vAeroUVW(eV));
174   Mach = Vt / Atmosphere->GetSoundSpeed();
175   MachU = vMachUVW(eU) = vAeroUVW(eU) / Atmosphere->GetSoundSpeed();
176   vMachUVW(eV) = vAeroUVW(eV) / Atmosphere->GetSoundSpeed();
177   vMachUVW(eW) = vAeroUVW(eW) / Atmosphere->GetSoundSpeed();
178
179 // Position
180
181   Vground = sqrt( vVel(eNorth)*vVel(eNorth) + vVel(eEast)*vVel(eEast) );
182
183   if (vVel(eNorth) == 0) psigt = 0;
184   else psigt =  atan2(vVel(eEast), vVel(eNorth));
185
186   if (psigt < 0.0) psigt += 2*M_PI;
187
188   if (Vt != 0) {
189     hdot_Vt = -vVel(eDown)/Vt;
190     if (fabs(hdot_Vt) <= 1) gamma = asin(hdot_Vt);
191   } else {
192     gamma = 0.0;
193   }
194
195   tat = sat*(1 + 0.2*Mach*Mach); // Total Temperature, isentropic flow
196   tatc = RankineToCelsius(tat);
197
198   if (MachU < 1) {   // Calculate total pressure assuming isentropic flow
199     pt = p*pow((1 + 0.2*MachU*MachU),3.5);
200   } else {
201     // Use Rayleigh pitot tube formula for normal shock in front of pitot tube
202     B = 5.76*MachU*MachU/(5.6*MachU*MachU - 0.8);
203     D = (2.8*MachU*MachU-0.4)*0.4167;
204     pt = p*pow(B,3.5)*D;
205   }
206
207   A = pow(((pt-p)/psl+1),0.28571);
208   if (MachU > 0.0) {
209     vcas = sqrt(7*psl/rhosl*(A-1));
210     veas = sqrt(2*qbar/rhosl);
211   } else {
212     vcas = veas = 0.0;
213   }
214
215   vPilotAccel.InitMatrix();
216   if ( Vt > 1.0 ) {
217      vPilotAccel =  Aerodynamics->GetForces()
218                     +  Propulsion->GetForces()
219                     +  GroundReactions->GetForces();
220      vPilotAccel /= MassBalance->GetMass();
221      vToEyePt = MassBalance->StructuralToBody(Aircraft->GetXYZep());
222      vPilotAccel += Propagate->GetPQRdot() * vToEyePt;
223      vPilotAccel += vPQR * (vPQR * vToEyePt);
224   } else {
225      vPilotAccel = Propagate->GetTl2b() * FGColumnVector3( 0.0, 0.0, Inertial->gravity() );
226   }
227
228   vPilotAccelN = vPilotAccel/Inertial->gravity();
229
230   earthPosAngle += State->Getdt()*Inertial->omega();
231
232   // VRP computation
233   const FGLocation& vLocation = Propagate->GetLocation();
234   FGColumnVector3 vrpStructural = Aircraft->GetXYZvrp();
235   FGColumnVector3 vrpBody = MassBalance->StructuralToBody( vrpStructural );
236   FGColumnVector3 vrpLocal = Propagate->GetTb2l() * vrpBody;
237   vLocationVRP = vLocation.LocalToLocation( vrpLocal );
238
239   // Recompute some derived values now that we know the dependent parameters values ...
240   hoverbcg = Propagate->GetDistanceAGL() / Aircraft->GetWingSpan();
241
242   FGColumnVector3 vMac = Propagate->GetTb2l()*MassBalance->StructuralToBody(Aircraft->GetXYZrp());
243   hoverbmac = (Propagate->GetDistanceAGL() + vMac(3)) / Aircraft->GetWingSpan();
244
245   return false;
246 }
247
248 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
249
250 double FGAuxiliary::GetHeadWind(void)
251 {
252   double psiw,vw;
253
254   psiw = Atmosphere->GetWindPsi();
255   vw = Atmosphere->GetWindNED().Magnitude();
256
257   return vw*cos(psiw - Propagate->GetEuler(ePsi));
258 }
259
260 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
261
262 double FGAuxiliary::GetCrossWind(void)
263 {
264   double psiw,vw;
265
266   psiw = Atmosphere->GetWindPsi();
267   vw = Atmosphere->GetWindNED().Magnitude();
268
269   return  vw*sin(psiw - Propagate->GetEuler(ePsi));
270 }
271
272 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
273
274 void FGAuxiliary::bind(void)
275 {
276   typedef double (FGAuxiliary::*PMF)(int) const;
277   typedef double (FGAuxiliary::*PF)(void) const;
278   PropertyManager->Tie("velocities/vc-fps", this, &FGAuxiliary::GetVcalibratedFPS);
279   PropertyManager->Tie("velocities/vc-kts", this, &FGAuxiliary::GetVcalibratedKTS);
280   PropertyManager->Tie("velocities/ve-fps", this, &FGAuxiliary::GetVequivalentFPS);
281   PropertyManager->Tie("velocities/ve-kts", this, &FGAuxiliary::GetVequivalentKTS);
282   PropertyManager->Tie("velocities/machU", this, &FGAuxiliary::GetMachU);
283   PropertyManager->Tie("velocities/tat-r", this, &FGAuxiliary::GetTotalTemperature);
284   PropertyManager->Tie("velocities/tat-c", this, &FGAuxiliary::GetTAT_C);
285   PropertyManager->Tie("velocities/pt-lbs_sqft", this, &FGAuxiliary::GetTotalPressure);
286   PropertyManager->Tie("velocities/p-aero-rad_sec", this, eX, (PMF)&FGAuxiliary::GetAeroPQR);
287   PropertyManager->Tie("velocities/q-aero-rad_sec", this, eY, (PMF)&FGAuxiliary::GetAeroPQR);
288   PropertyManager->Tie("velocities/r-aero-rad_sec", this, eZ, (PMF)&FGAuxiliary::GetAeroPQR);
289   PropertyManager->Tie("velocities/phidot-rad_sec", this, ePhi, (PMF)&FGAuxiliary::GetEulerRates);
290   PropertyManager->Tie("velocities/thetadot-rad_sec", this, eTht, (PMF)&FGAuxiliary::GetEulerRates);
291   PropertyManager->Tie("velocities/psidot-rad_sec", this, ePsi, (PMF)&FGAuxiliary::GetEulerRates);
292   PropertyManager->Tie("velocities/u-aero-fps", this, eU, (PMF)&FGAuxiliary::GetAeroUVW);
293   PropertyManager->Tie("velocities/v-aero-fps", this, eV, (PMF)&FGAuxiliary::GetAeroUVW);
294   PropertyManager->Tie("velocities/w-aero-fps", this, eW, (PMF)&FGAuxiliary::GetAeroUVW);
295   PropertyManager->Tie("velocities/vt-fps", this, &FGAuxiliary::GetVt, &FGAuxiliary::SetVt, true);
296   PropertyManager->Tie("velocities/mach", this, &FGAuxiliary::GetMach, &FGAuxiliary::SetMach, true);
297   PropertyManager->Tie("velocities/vg-fps", this, &FGAuxiliary::GetVground);
298   PropertyManager->Tie("accelerations/a-pilot-x-ft_sec2", this, eX, (PMF)&FGAuxiliary::GetPilotAccel);
299   PropertyManager->Tie("accelerations/a-pilot-y-ft_sec2", this, eY, (PMF)&FGAuxiliary::GetPilotAccel);
300   PropertyManager->Tie("accelerations/a-pilot-z-ft_sec2", this, eZ, (PMF)&FGAuxiliary::GetPilotAccel);
301   PropertyManager->Tie("accelerations/n-pilot-x-norm", this, eX, (PMF)&FGAuxiliary::GetNpilot);
302   PropertyManager->Tie("accelerations/n-pilot-y-norm", this, eY, (PMF)&FGAuxiliary::GetNpilot);
303   PropertyManager->Tie("accelerations/n-pilot-z-norm", this, eZ, (PMF)&FGAuxiliary::GetNpilot);
304   PropertyManager->Tie("position/epa-rad", this, &FGAuxiliary::GetEarthPositionAngle);
305   /* PropertyManager->Tie("atmosphere/headwind-fps", this, &FGAuxiliary::GetHeadWind, true);
306   PropertyManager->Tie("atmosphere/crosswind-fps", this, &FGAuxiliary::GetCrossWind, true); */
307   PropertyManager->Tie("aero/alpha-rad", this, (PF)&FGAuxiliary::Getalpha, &FGAuxiliary::Setalpha, true);
308   PropertyManager->Tie("aero/beta-rad", this, (PF)&FGAuxiliary::Getbeta, &FGAuxiliary::Setbeta, true);
309   PropertyManager->Tie("aero/mag-beta-rad", this, (PF)&FGAuxiliary::GetMagBeta);
310   PropertyManager->Tie("aero/alpha-deg", this, inDegrees, (PMF)&FGAuxiliary::Getalpha);
311   PropertyManager->Tie("aero/beta-deg", this, inDegrees, (PMF)&FGAuxiliary::Getbeta);
312   PropertyManager->Tie("aero/mag-beta-deg", this, inDegrees, (PMF)&FGAuxiliary::GetMagBeta);
313   PropertyManager->Tie("aero/qbar-psf", this, &FGAuxiliary::Getqbar, &FGAuxiliary::Setqbar, true);
314   PropertyManager->Tie("aero/qbarUW-psf", this, &FGAuxiliary::GetqbarUW, &FGAuxiliary::SetqbarUW, true);
315   PropertyManager->Tie("aero/qbarUV-psf", this, &FGAuxiliary::GetqbarUV, &FGAuxiliary::SetqbarUV, true);
316   PropertyManager->Tie("aero/alphadot-rad_sec", this, (PF)&FGAuxiliary::Getadot, &FGAuxiliary::Setadot, true);
317   PropertyManager->Tie("aero/betadot-rad_sec", this, (PF)&FGAuxiliary::Getbdot, &FGAuxiliary::Setbdot, true);
318   PropertyManager->Tie("aero/alphadot-deg_sec", this, inDegrees, (PMF)&FGAuxiliary::Getadot);
319   PropertyManager->Tie("aero/betadot-deg_sec", this, inDegrees, (PMF)&FGAuxiliary::Getbdot);
320   PropertyManager->Tie("aero/h_b-cg-ft", this, &FGAuxiliary::GetHOverBCG);
321   PropertyManager->Tie("aero/h_b-mac-ft", this, &FGAuxiliary::GetHOverBMAC);
322   PropertyManager->Tie("flight-path/gamma-rad", this, &FGAuxiliary::GetGamma, &FGAuxiliary::SetGamma);
323   PropertyManager->Tie("flight-path/psi-gt-rad", this, &FGAuxiliary::GetGroundTrack);
324 }
325
326 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
327
328 void FGAuxiliary::unbind(void)
329 {
330   PropertyManager->Untie("velocities/vc-fps");
331   PropertyManager->Untie("velocities/vc-kts");
332   PropertyManager->Untie("velocities/ve-fps");
333   PropertyManager->Untie("velocities/ve-kts");
334   PropertyManager->Untie("velocities/machU");
335   PropertyManager->Untie("velocities/tat-r");
336   PropertyManager->Untie("velocities/tat-c");
337   PropertyManager->Untie("velocities/p-aero-rad_sec");
338   PropertyManager->Untie("velocities/q-aero-rad_sec");
339   PropertyManager->Untie("velocities/r-aero-rad_sec");
340   PropertyManager->Untie("velocities/pt-lbs_sqft");
341   PropertyManager->Untie("velocities/phidot-rad_sec");
342   PropertyManager->Untie("velocities/thetadot-rad_sec");
343   PropertyManager->Untie("velocities/psidot-rad_sec");
344   PropertyManager->Untie("velocities/u-aero-fps");
345   PropertyManager->Untie("velocities/v-aero-fps");
346   PropertyManager->Untie("velocities/w-aero-fps");
347   PropertyManager->Untie("velocities/vt-fps");
348   PropertyManager->Untie("velocities/mach");
349   PropertyManager->Untie("velocities/vg-fps");
350   PropertyManager->Untie("accelerations/a-pilot-x-ft_sec2");
351   PropertyManager->Untie("accelerations/a-pilot-y-ft_sec2");
352   PropertyManager->Untie("accelerations/a-pilot-z-ft_sec2");
353   PropertyManager->Untie("accelerations/n-pilot-x-norm");
354   PropertyManager->Untie("accelerations/n-pilot-y-norm");
355   PropertyManager->Untie("accelerations/n-pilot-z-norm");
356   PropertyManager->Untie("position/epa-rad");
357   /* PropertyManager->Untie("atmosphere/headwind-fps");
358   PropertyManager->Untie("atmosphere/crosswind-fps"); */
359   PropertyManager->Untie("aero/qbar-psf");
360   PropertyManager->Untie("aero/qbarUW-psf");
361   PropertyManager->Untie("aero/qbarUV-psf");
362   PropertyManager->Untie("aero/alpha-rad");
363   PropertyManager->Untie("aero/beta-rad");
364   PropertyManager->Untie("aero/alpha-deg");
365   PropertyManager->Untie("aero/beta-deg");
366   PropertyManager->Untie("aero/alphadot-rad_sec");
367   PropertyManager->Untie("aero/betadot-rad_sec");
368   PropertyManager->Untie("aero/mag-beta-rad");
369   PropertyManager->Untie("aero/alphadot-deg_sec");
370   PropertyManager->Untie("aero/betadot-deg_sec");
371   PropertyManager->Untie("aero/mag-beta-deg");
372   PropertyManager->Untie("aero/h_b-cg-ft");
373   PropertyManager->Untie("aero/h_b-mac-ft");
374   PropertyManager->Untie("flight-path/gamma-rad");
375   PropertyManager->Untie("flight-path/psi-gt-rad");
376 }
377
378 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
379 //    The bitmasked value choices are as follows:
380 //    unset: In this case (the default) JSBSim would only print
381 //       out the normally expected messages, essentially echoing
382 //       the config files as they are read. If the environment
383 //       variable is not set, debug_lvl is set to 1 internally
384 //    0: This requests JSBSim not to output any messages
385 //       whatsoever.
386 //    1: This value explicity requests the normal JSBSim
387 //       startup messages
388 //    2: This value asks for a message to be printed out when
389 //       a class is instantiated
390 //    4: When this value is set, a message is displayed when a
391 //       FGModel object executes its Run() method
392 //    8: When this value is set, various runtime state variables
393 //       are printed out periodically
394 //    16: When set various parameters are sanity checked and
395 //       a message is printed out when they go out of bounds
396
397 void FGAuxiliary::Debug(int from)
398 {
399   if (debug_lvl <= 0) return;
400
401   if (debug_lvl & 1) { // Standard console startup message output
402     if (from == 0) { // Constructor
403
404     }
405   }
406   if (debug_lvl & 2 ) { // Instantiation/Destruction notification
407     if (from == 0) cout << "Instantiated: FGAuxiliary" << endl;
408     if (from == 1) cout << "Destroyed:    FGAuxiliary" << endl;
409   }
410   if (debug_lvl & 4 ) { // Run() method entry print for FGModel-derived objects
411   }
412   if (debug_lvl & 8 ) { // Runtime state variables
413   }
414   if (debug_lvl & 16) { // Sanity checking
415     if (Mach > 100 || Mach < 0.00)
416       cout << "FGPropagate::Mach is out of bounds: " << Mach << endl;
417     if (qbar > 1e6 || qbar < 0.00)
418       cout << "FGPropagate::qbar is out of bounds: " << qbar << endl;
419   }
420   if (debug_lvl & 64) {
421     if (from == 0) { // Constructor
422       cout << IdSrc << endl;
423       cout << IdHdr << endl;
424     }
425   }
426 }
427
428 } // namespace JSBSim