Hi,

sorry for the late reaction.
Turns out to be a bad interaction between jsbsims crash detection and my
past initialization changes.
The attached patch fixes this by moving crash detection out of the
initialization phase of jsbsim.

Erik,
Can you apply that please to flightgears cvs.
I will care for JSBsim's cvs.

Thanks and sorry

           Mathias

On Dienstag 26 Juli 2005 03:38, Dave Perry wrote:
> I have posted this issue twice before.  This is with plib, SimGear, fg, 
> and data all from recent cvs.  I have fgfs from cvs up-to-date on my 
> desktop and notebook, both running Linux FC3 and both have this bug 
> after updates from about 10 days ago.
> 
> I don't know if there are others that use fgfs from front range 
> locations in Colorado, but I use it to practice instrument approaches in 
> this my home area and my two favorite aircraft for this are the c172p 
> and c310, both jsbsim models.  _The yasim aircraft still work fine with 
> this scenery._  By the way, I downloaded both w110n30.tgz and 
> w110n40.tgz and reinstalled both with no change to this bug.  I have not 
> seen this issue with airports not from these scenery files.
> 
> I used --log-level=info to try and figure out what the issue is and here 
> is the beginning and end of that log.
> 
> > [EMAIL PROTECTED] data]$ ./bin/fgfs 
> > --fg-scenery=/usr/local/Scenery-0.9.8 --log-level=info --airport=2V2 
> > --aircraft=c172
> > Finished command line arguments
> > Initializing splash screen
> > GeForce FX 5600 Ultra/AGP/SSE/3DNOW!
> > Max texture size = 4096
> > Depth buffer bits = 24
> > Loading Airport Database ...
> > Data file version = 715
> > [FINISHED LOADING]
> > Loading Navaid Databases
> > Standardising rwy number from B to 0B
> >   Fixes
> > Attempting to set starting position for 2V2:28R
> > Failed to find runway 28R at airport 2V2
> > Attempting to set starting position from airport code 2V2 heading 270
> > runway =  -105.164, 40.1644 length = 1459.99 heading = 122.75
> > Position for 2V2 is (-105.156, 40.1609) new heading is 302.75
> > Searching for airport code = 2V2
> > Position for 2V2 is (-105.164, 40.1638)
> > Initializing Time
> > Current greenwich mean time = Tue Jul 26 01:12:53 2005
> >
> > Current local time          = Mon Jul 25 19:12:53 2005
> >
> > Reading timezone info from: /usr/local/FlightGear/Timezone/zone.tab
> > Using zonename = /usr/local/FlightGear/Timezone/America/Denver
> >   First time, doing precise gst
> > General Initialization
> > ======= ==============
> 
> ...
> 
> > Ltoken = OBJECT_BASE name = 1237121.btg
> > token = OBJECT name = CO82.btg
> > token = OBJECT name = 7CO3.btg
> > token = OBJECT name = K18V.btg
> > token = OBJECT name = K18V.btg
> > token = OBJECT_SHARED name = Models/Structures/radio-medium.xml pos = 
> > -104.604, 40.1208 elevation = 1459 heading = 0
> > token = OBJECT_SHARED name = Models/Structures/radio-medium.xml pos = 
> > -104.742, 40.0566 elevation = 1488 heading = 0
> > token = OBJECT_SHARED name = Models/Structures/radio-medium.xml pos = 
> > -104.747, 40.0555 elevation = 1497.8 heading = 0
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Ltoken = OBJECT_BASE name = 1237129.btg
> > token = OBJECT name = 03CO.btg
> > token = OBJECT name = 03CO.btg
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Loading tile /usr/local/Scenery-0.9.8/w110n40/w105n40/1237137
> > token = OBJECT_BASE name = 1237137.btg
> > token = OBJECT name = K11V.btg
> > token = OBJECT name = K11V.btg
> > token = OBJECT_SHARED name = Models/Structures/radio-medium.xml pos = 
> > -104.706, 40.2614 elevation = 1407.8 heading = 0
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Loading tile /usr/local/Scenery-0.9.8/w110n40/w105n40/1237145
> > token = OBJECT_BASE name = 1237145.btg
> > token = OBJECT name = KGXY.btg
> > token = OBJECT_SHARED name = Models/Airport/beacon.xml pos = -104.636, 
> > 40.4291 elevation = 1418 heading = 0
> > token = OBJECT name = CO70.btg
> > token = OBJECT name = CO70.btg
> > token = OBJECT_SHARED name = Models/Structures/radio-medium.xml pos = 
> > -104.724, 40.4375 elevation = 1328 heading = 0
> > token = OBJECT_SHARED name = Models/Structures/radio-medium.xml pos = 
> > -104.724, 40.4378 elevation = 1328.3 heading = 0
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Loading tile /usr/local/Scenery-0.9.8/w110n40/w105n40/1237153
> > token = OBJECT_BASE name = 1237153.btg
> > token = OBJECT name = CO48.btg
> > token = OBJECT name = CO48.btg
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Error writing to socket: 5500
> > Error writing data.
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Error writing to socket: 5500
> > Error writing data.
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > prepare_ground_cache(): ac radius = 5.5146, # triangles = 28, # wires 
> > = 0, # catapults = 0, ground_radius = 6.37082e+06
> > Error writing to socket: 5500
> > Error writing data.
> 
> This will go on until I stop it with the start-up window shoing the text 
> "loading scenery objects".
> 
> This bug showed up about 10 days ago with an update from cvs.  Any ideas 
> what is broken?
> 
> Regards,
> Dave Perry
> 
> 
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@flightgear.org
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 2f585eeea02e2c79d7b1d8c4963bae2d
> 
> 

-- 
Mathias Fröhlich, email: [EMAIL PROTECTED]
Index: src/FDM/JSBSim/JSBSim.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/JSBSim/JSBSim.cxx,v
retrieving revision 1.34
diff -u -r1.34 JSBSim.cxx
--- src/FDM/JSBSim/JSBSim.cxx	11 Jun 2005 08:19:16 -0000	1.34
+++ src/FDM/JSBSim/JSBSim.cxx	26 Jul 2005 21:08:07 -0000
@@ -487,6 +487,12 @@
     // translate JSBsim back to FG structure so that the
     // autopilot (and the rest of the sim can use the updated values
     copy_from_JSBsim();
+
+    // crashed (altitude AGL < 0)
+    if (get_Altitude_AGL() < 0.0) {
+      crash_message = "Attempted to fly under ground.";
+      crash_handler();
+    }
 }
 
 /******************************************************************************/
@@ -817,12 +823,6 @@
     speedbrake_pos_pct->setDoubleValue( FCS->GetDsbPos(ofNorm) );
     spoilers_pos_pct->setDoubleValue( FCS->GetDspPos(ofNorm) );
 
-    // crashed (altitude AGL < 0)
-    if (get_Altitude_AGL() < 0.0) {
-      crash_message = "Attempted to fly under ground.";
-      crash_handler();
-    }
-
     return true;
 }
 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to