]> git.mxchange.org Git - flightgear.git/commitdiff
There were several typos in the unbinding section of FGInterface. This meant
authorcurt <curt>
Sun, 30 Mar 2003 02:26:05 +0000 (02:26 +0000)
committercurt <curt>
Sun, 30 Mar 2003 02:26:05 +0000 (02:26 +0000)
that after a reset or reposition, several FDM variable were not unbound
correctly and left dangling pointing to unallocated memory.  This wasn't
a crash type bug, but those properties then had bogus values.  This
specifically prevented the turn coordinator gyro modeling from working after
a reset or reposition.

src/FDM/flight.cxx

index 808da0580ee0e768d9e6749ef52a0f777249bb80..c7f6b0944db618faf5bcad32cccf7bcd60107099 100644 (file)
@@ -436,10 +436,10 @@ FGInterface::unbind ()
 {
   bound = false;
 
-  fgUntie("/fdm/time/delta_t");
-  fgUntie("/fdm/time/elapsed");
-  fgUntie("/fdm/time/remainder");
-  fgUntie("/fdm/time/multi_loop");
+  // fgUntie("/fdm/time/delta_t");
+  // fgUntie("/fdm/time/elapsed");
+  // fgUntie("/fdm/time/remainder");
+  // fgUntie("/fdm/time/multi_loop");
   fgUntie("/position/latitude-deg");
   fgUntie("/position/longitude-deg");
   fgUntie("/position/altitude-ft");
@@ -447,6 +447,12 @@ FGInterface::unbind ()
   fgUntie("/orientation/roll-deg");
   fgUntie("/orientation/pitch-deg");
   fgUntie("/orientation/heading-deg");
+  fgUntie("/orientation/roll-rate-degps");
+  fgUntie("/orientation/pitch-rate-degps");
+  fgUntie("/orientation/yaw-rate-degps");
+  fgUntie("/orientation/side-slip-rad");
+  fgUntie("/orientation/side-slip-deg");
+  fgUntie("/orientation/alpha-deg");
   fgUntie("/velocities/airspeed-kt");
   fgUntie("/velocities/mach");
   fgUntie("/velocities/speed-north-fps");
@@ -457,13 +463,13 @@ FGInterface::unbind ()
   fgUntie("/velocities/wBody-fps");
   fgUntie("/velocities/vertical-speed-fps");
   fgUntie("/velocities/glideslope");
-  fgUntie("/velocities/side-slip-rad");
-  fgUntie("/velocities/side-slip-deg");
-  fgUntie("/velocities/alpha-deg");
   fgUntie("/accelerations/nlf");
   fgUntie("/accelerations/pilot/x-accel-fps_sec");
   fgUntie("/accelerations/pilot/y-accel-fps_sec");
   fgUntie("/accelerations/pilot/z-accel-fps_sec");
+  fgUntie("/accelerations/ned/north-accel-fps_sec");
+  fgUntie("/accelerations/ned/east-accel-fps_sec");
+  fgUntie("/accelerations/ned/down-accel-fps_sec");
 }
 
 /**