From 68522eb75c12f198a49dffce10ef433f210058aa Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 30 Mar 2003 02:26:05 +0000 Subject: [PATCH] There were several typos in the unbinding section of FGInterface. This meant 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 | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/FDM/flight.cxx b/src/FDM/flight.cxx index 808da0580..c7f6b0944 100644 --- a/src/FDM/flight.cxx +++ b/src/FDM/flight.cxx @@ -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"); } /**