]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaks by David Megginson.
authorcurt <curt>
Wed, 27 Oct 1999 00:44:16 +0000 (00:44 +0000)
committercurt <curt>
Wed, 27 Oct 1999 00:44:16 +0000 (00:44 +0000)
src/FDM/Balloon.cxx
src/FDM/Balloon/BalloonSim.cpp

index ec77205b0fcad168039df73e6a898951af8da0d7..85331bb6398937cb01919a54520ae105896a203f 100644 (file)
@@ -110,7 +110,7 @@ int FGBalloonSim::update( int multiloop ) {
     }
 
     // set control positions
-    current_balloon.set_burner_strength ( controls.get_elevator() ); /*controls.get_throttle( 0 )*/
+    current_balloon.set_burner_strength ( controls.get_throttle(0) );
     //not more implemented yet
 
     // Inform BalloonSim of the local terrain altitude
index dc8ae6cb8c1ff0b2a7e93504cd89cc1b673b1fcf..bb1454051a39de1286dbb5c1c4a0185b71abe4c0 100644 (file)
@@ -106,15 +106,15 @@ void balloon::update()
 {
     /************************************************************************/
     /* I'm  simplifying  the  balloon by  reducing the  simulation  to  two */
-    /* points:                                                              */                                                         
+    /* points:                                                              */ 
     /* the center of the basket (CB) and the center of the envelope (CE)    */
-    /*                                                                      */                                                         
-    /*                                 ce                                   */                                                         
-    /*                                 I                                    */                                                         
-    /*                                 I                                    */                                                         
-    /*                                 cg (=center of gravity)              */                                                         
-    /*                                 I                                    */                                                         
-    /*                                 cb                                   */                                                         
+    /*                                                                      */
+    /*                                 ce                                   */
+    /*                                 I                                    */
+    /*                                 I                                    */
+    /*                                 cg (=center of gravity)              */
+    /*                                 I                                    */
+    /*                                 cb                                   */
     /*                                                                      */
     /* On each center  are forces acting:  gravity and  wind resitance.  CE */
     /* additionally got the lift  (=> I need to calculate the weight of the */
@@ -240,7 +240,7 @@ void balloon::update()
 
     // care for the ground
     if (position[2] < (ground_level+0.001) )
-       velocity[2] = ground_level;
+       position[2] = ground_level;
 
     //return results
     sgAddVec3(position, dTotal);