48#include "input_output/FGLog.h"
70void FGMars::Calculate(
double altitude)
76 if (altitude < 22960.0) {
77 Temperature = -25.68 - 0.000548*altitude;
79 Temperature = -10.34 - 0.001217*altitude;
81 Pressure = 14.62*exp(-0.00003*altitude);
82 Density = Pressure/(Reng*Temperature);
107void FGMars::Debug(
int from)
109 if (debug_lvl <= 0)
return;
115 if (debug_lvl & 2 ) {
116 FGLogging log(LogLevel::DEBUG);
117 if (from == 0) log <<
"Instantiated: FGMars\n";
118 if (from == 1) log <<
"Destroyed: FGMars\n";
120 if (debug_lvl & 4 ) {
122 if (debug_lvl & 8 ) {
124 if (debug_lvl & 16) {
126 if (debug_lvl & 32) {
128 if (debug_lvl & 64) {
Models an empty, abstract base atmosphere class.
Encapsulates the JSBSim simulation executive.
FGMars(FGFDMExec *)
Constructor.
Main namespace for the JSBSim Flight Dynamics Model.