]> git.mxchange.org Git - flightgear.git/commitdiff
putting back the pilot-g used by accel.xml gadget
authormselig <mselig>
Mon, 9 Jun 2003 06:15:46 +0000 (06:15 +0000)
committermselig <mselig>
Mon, 9 Jun 2003 06:15:46 +0000 (06:15 +0000)
src/FDM/LaRCsim/LaRCsim.cxx

index 73e8009c13ed488525b53ff005f66039b4d08d33..5c3026d2e374b192b2b0f8e83b241fc7f253e7a7 100644 (file)
@@ -228,6 +228,9 @@ void FGLaRCsim::update( double dt ) {
       fgSetDouble("/surface-positions/flight/right-aileron-pos-norm", -1 * fgGetDouble("/controls/flight/aileron")); // FIXME: ignoring trim
       fgSetDouble("/surface-positions/flight/left-aileron-pos-norm",       fgGetDouble("/controls/flight/aileron")); // FIXME: ignoring trim
 
+      // used by Instruments/accel.xml
+      fgSetDouble("/accelerations/pilot-g",   -N_Z_cg);
+
       Flap_handle = flap_max * globals->get_controls()->get_flaps();
 
       // flaps with transition occuring in uiuc_aerodeflections.cpp