44#include <simgear/compiler.h>
48#include <simgear/constants.h>
49#include <simgear/debug/logstream.hxx>
50#include <simgear/math/sg_geodesy.hxx>
51#include <simgear/misc/sg_path.hxx>
67 current_balloon.set_dt(dt);
84 SG_LOG( SG_FLIGHT, SG_INFO,
"Starting initializing BalloonSim" );
86 SG_LOG( SG_FLIGHT, SG_INFO,
" created a balloon" );
92 current_balloon.setPosition( temp );
98 current_balloon.setHPR( temp );
101 temp = SGVec3f(
fgGetDouble(
"/sim/presets/uBody-fps"),
104 current_balloon.setVelocity( temp );
106 SG_LOG( SG_FLIGHT, SG_INFO,
"Finished initializing BalloonSim" );
112 double save_alt = 0.0;
126 current_balloon.set_burner_strength (
globals->get_controls()->get_throttle(0) );
142 for (
int i = 0;
i < multiloop;
i++ ) {
143 current_balloon.update();
162 if ( save_alt < -9000.0 ) {
180 current_balloon.getVelocity( temp );
188 current_balloon.getPosition( temp );
195 current_balloon.getHPR( temp );
204SGSubsystemMgr::Registrant<FGBalloonSim> registrantFGBalloonSim;
void update(double dt) override
bool copy_to_BalloonSim()
bool copy_from_BalloonSim()
double get_Longitude() const
double get_Latitude() const
void _set_Velocities_Local(double north, double east, double down)
void common_init()
Initialize the state of the FDM.
void _set_Omega_Body(double p, double q, double r)
virtual void set_Altitude(double alt)
double get_Runway_altitude() const
void _updateGeocentricPosition(double lat_geoc, double lon, double alt)
double get_Altitude() const
virtual void set_Euler_Angles(double phi, double theta, double psi)
void _set_V_equiv_kts(double kts)
int _calc_multiloop(double dt)
double fgGetDouble(const char *name, double defaultValue)
Get a double value for a property.