/******************************************************************************/
// Run an iteration of the EOM (equations of motion)
-
+# include <fenv.h>
void FGJSBsim::update( double dt )
{
if(crashed) {
// Compute the potential movement of this aircraft and query for the
// ground in this area.
double groundCacheRadius = acrad + 2*dt*Propagate->GetUVW().Magnitude();
+
cart_pos[0] = cart(1);
cart_pos[1] = cart(2);
cart_pos[2] = cart(3);
double Lmb, Exp, Tmb, deltaH, factor;
double numRows = StdAtmosTemperatureTable->GetNumRows();
+ if (altitude > 328084) // Karman line
+ altitude = 328084;
+
// Iterate through the altitudes to find the current Base Altitude
// in the table. That is, if the current altitude (the argument passed in)
// is 20000 ft, then the base altitude from the table is 0.0. If the
factor = Tmb/(Tmb + Lmb*deltaH);
pressure = PressureBreakpointVector[b]*pow(factor, Exp);
} else {
- pressure = PressureBreakpointVector[b]*exp(-Mair*deltaH/(Rstar*Tmb));
+ pressure = PressureBreakpointVector[b]*exp(Mair*deltaH/(Rstar*Tmb));
}
return pressure;
#ifndef VOICESYNTHESIZER_HXX_
#define VOICESYNTHESIZER_HXX_
-#include <simgear/sound/sample_openal.hxx>
+#include <simgear/sound/sample.hxx>
#include <simgear/threads/SGQueue.hxx>
#include <string>
#include "beacon.hxx"
-#include <simgear/sound/sample_openal.hxx>
+#include <simgear/sound/sample.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/debug/logstream.hxx>
#include "voice.hxx"
#include <simgear/sound/soundmgr_openal.hxx>
-#include <simgear/sound/sample_openal.hxx>
+#include <simgear/sound/sample.hxx>
#include <simgear/threads/SGQueue.hxx>
class VoiceSynthesizer;
#include "morse.hxx"
-#include <simgear/sound/sample_openal.hxx>
+#include <simgear/sound/sample.hxx>
#include <cstring>
#include <stdlib.h>
#include <Main/fg_props.hxx>
#include <simgear/sound/soundmgr_openal.hxx>
-#include <simgear/sound/sample_openal.hxx>
+#include <simgear/sound/sample.hxx>
FGSampleQueue::FGSampleQueue ( SGSoundMgr *smgr, const std::string &refname ) :
last_enabled( true ),
add_executable(fgelev fgelev.cxx)
+message("SIMGEAR_LIBRARIES: ${SIMGEAR_LIBRARIES}")
target_link_libraries(fgelev
${SIMGEAR_LIBRARIES}
${OPENSCENEGRAPH_LIBRARIES}
${OPENGL_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
+ ${ZLIB_LIBRARY}
)
install(TARGETS fgelev RUNTIME DESTINATION bin)