using namespace std;
#include <iostream>
+#include <cstdio>
const ISA_layer ISA_def[] = {
// 0 1 2 3 4 5 6 7 8
}
// Should never get here.
- SG_LOG(SG_GENERAL, SG_ALERT, "PT_vs_hpt: ran out of layers for h=" << hh );
+ SG_LOG(SG_ENVIRONMENT, SG_ALERT, "PT_vs_hpt: ran out of layers for h=" << hh );
return make_pair(d0, d0);
}
//////////////////////////////////////////////////////////////////////
-FGAltimeter::FGAltimeter() : kset(atmodel::ISA::P0), kft(0)
+FGAltimeter::FGAltimeter()
{
cache();
}
double rslt = field_press
* pow(1. + ISA::lam0 * field_elev / ISA::T0 * prat, 1./nn);
#if 0
- SG_LOG(SG_GENERAL, SG_ALERT, "QNH: elev: " << field_elev
+ SG_LOG(SG_ENVIRONMENT, SG_ALERT, "QNH: elev: " << field_elev
<< " press: " << field_press
<< " prat: " << prat
<< " rslt: " << rslt