On Thu, 2002-02-14 at 02:39, Erik Hofman wrote: > Alex Perry wrote: > > That's the same error I have on the C172 at simulator startup. FYI. > > A crash at startup is mostly because of stale objects files hanging > around. I think you should do a "make clean" in src/FDM/JSBSim and > remove src/FDM/JSBSim.o and try again. > > > > >>JSBsim C310 crashes the sim on gear retraction. > >> > >>$PATLA,117.30,119.0,111.80,29.0,266*69 > >>182: GEAR_CONTACT 1 > >>183: Crash Detected > >>184: GEAR_CONTACT 1 > >>185: Crash Detected > >>186: GEAR_CONTACT 1 > >>187: Crash Detected > >>188: GEAR_CONTACT 1 > >>189: Crash Detected > >>190: GEAR_CONTACT 1 > >>191: Crash Detected > >>192: GEAR_CONTACT 1 > >>193: Crash Detected > >>194: GEAR_CONTACT 1 > >>195: Crash Detected > >>Tile not found (Ok if initializing) > >>Attempting to schedule tiles for bogus latitude and > >>longitude. This is a FATAL error. Exiting! > > This gets fixed by this patch: > > --- /home/erik/src/CVS/fgfs/JSBSim/FGLGear.cpp Fri Jan 25 21:10:22 2002 > +++ FGLGear.cpp Thu Feb 14 11:26:01 2002 > @@ -189,9 +189,11 @@ > > if (isRetractable) { > if (FCS->GetGearPos() < 0.01) { > + FCS->SetGearPos(0.0); > GearUp = true; > GearDown = false; > } else if (FCS->GetGearPos() > 0.99) { > + FCS->SetGearPos(1.0); > GearDown = true; > GearUp = false; > } else { > > > Ths problem is that GearPos is decreased to it lowest maximum value > somewhere in the retraction code. > I suspect there is a check for == 0 where < 0.01 would be more apropriate. > > Erik
In as far as the gear are concerned, once FCS->GetGearPos() is below 0.01 or above 0.99, the gear are up and locked or down and locked respectively so FCS->GetGearPos() ceases to have any meaning. (that's what the code above does) > > > > _______________________________________________ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel -- Tony Peden [EMAIL PROTECTED] We all know Linux is great ... it does infinite loops in 5 seconds. -- attributed to Linus Torvalds _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel