]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/Balloon.cxx
Added stall hysteresis modeling, nose should fall through nicely in a stall now.
[flightgear.git] / src / FDM / Balloon.cxx
index 4bde1049f443bc9d1c2c092cf81678081e45db0d..dd5bc016d8f8580432532adc857e9bcbb6daa138 100644 (file)
@@ -113,7 +113,7 @@ void FGBalloonSim::init() {
 
 
 // Run an iteration of the EOM (equations of motion)
-bool FGBalloonSim::update( int multiloop ) {
+void FGBalloonSim::update( int multiloop ) {
     double save_alt = 0.0;
 
     // lets try to avoid really screwing up the BalloonSim model
@@ -162,8 +162,6 @@ bool FGBalloonSim::update( int multiloop ) {
     if ( save_alt < -9000.0 ) {
        set_Altitude( save_alt );
     }
-
-    return true;
 }
 
 
@@ -192,7 +190,7 @@ bool FGBalloonSim::copy_from_BalloonSim() {
     //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] );