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.
This commit is contained in:
parent
2bf14d785f
commit
68522eb75c
1 changed files with 13 additions and 7 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue