// Run an iteration of the EOM (equations of motion)
-bool FGBalloonSim::update( int multiloop ) {
+void FGBalloonSim::update( double dt ) {
double save_alt = 0.0;
+ if (is_suspended())
+ return;
+
+ int multiloop = _calc_multiloop(dt);
+
// lets try to avoid really screwing up the BalloonSim model
if ( get_Altitude() < -9000 ) {
save_alt = get_Altitude();
if ( save_alt < -9000.0 ) {
set_Altitude( save_alt );
}
-
- return true;
}
//temp[1]: longitude
//temp[2]: altitude (meters)
- _updatePosition( temp[0], temp[1], temp[2] * SG_METER_TO_FEET );
+ _updateGeocentricPosition( temp[0], temp[1], temp[2] * SG_METER_TO_FEET );
current_balloon.getHPR( temp );
set_Euler_Angles( temp[0], temp[1], temp[2] );