Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-15 Thread Erik Hofman


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 {

Well, I wasn't saying this was the cuase of the
problem, just *a* 
solution. I figured there might be  a counter
somwhere which decreses 
GearPos by a certain amount, but the check didn't
catch it being close 
to 0.0
Therefore it would en up in an endless loop or
something.

 It's possible.  Do you notice any problem with the
 flaps? (it's the same code:


Well, I got the evidence now:
*** GearPos = 0.0200
*** GearPos = 0.0183
*** GearPos = 0.0167
*** GearPos = 0.0150
*** GearPos = 0.0133
*** GearPos = 0.0117
*** GearPos = 0.0100
*** GearPos = 0.0083
*** GearPos = 0.0067
*** GearPos = 0.0050
*** GearPos = 0.0033
*** GearPos = 0.0017
*** GearPos = 0.
*** GearPos = 
-38906661405588607.

But I cant find where this happens. I trecked it down to FGState.cpp
FGState::SetParameter(eParam val_idx, double val) where I printed the 
value of val.

Can anybody who has some more knowledge on JSBSim please take a look at it?

Erik


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-15 Thread BERNDT, JON S. (JON) (JSC-EX) (LM)

 Where in the code is the gear position (i.e. relative to retracted or
 extended) calculated and managed?

 Curt.

The gear forces and moments are calculated in individual instances of
FGLGear. The ground reactions as a whole are managed in FGGroundReactions.

Jon

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-15 Thread Tony Peden


--- Curtis L. Olson [EMAIL PROTECTED] wrote:
 Where in the code is the gear position (i.e.
 relative to retracted or
 extended) calculated and managed?

src/FDM/JSBSim/filtersjb/FGKinemat
 
 Curt.
 
 
 Tony Peden writes:
  On Fri, 2002-02-15 at 01:49, Erik Hofman wrote:
   
   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 {
   
   Well, I wasn't saying this was the cuase of
 the
   problem, just *a* 
   solution. I figured there might be  a counter
   somwhere which decreses 
   GearPos by a certain amount, but the check
 didn't
   catch it being close 
   to 0.0
   Therefore it would en up in an endless loop or
   something.
   
It's possible.  Do you notice any problem with
 the
flaps? (it's the same code:
   
   
   Well, I got the evidence now:
   *** GearPos = 0.0200
   *** GearPos = 0.0183
   *** GearPos = 0.0167
   *** GearPos = 0.0150
   *** GearPos = 0.0133
   *** GearPos = 0.0117
   *** GearPos = 0.0100
   *** GearPos = 0.0083
   *** GearPos = 0.0067
   *** GearPos = 0.0050
   *** GearPos = 0.0033
   *** GearPos = 0.0017
   *** GearPos = 0.
   *** GearPos = 
  

-38906661405588607.
   
   But I cant find where this happens. I trecked it
 down to FGState.cpp
   FGState::SetParameter(eParam val_idx, double
 val) where I printed the 
   value of val.
   
   Can anybody who has some more knowledge on
 JSBSim please take a look at it?
  
  I'll look into it tonight or tomorrow.
  
   
   Erik
   
   
   ___
   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
 
 -- 
 Curtis Olson   IVLab / HumanFIRST Program  
 FlightGear Project
 Twin Cities[EMAIL PROTECTED] 
 [EMAIL PROTECTED]
 Minnesota  http://www.menet.umn.edu/~curt  
 http://www.flightgear.org
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]

http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 
 


__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-15 Thread David Megginson

Curtis L. Olson writes:

  What code determines whether the gear is retracted or extended or in
  some intermediate state?

That's FDM-specific.  In FGControls, we keep the position of the gear
selector (up or down), but not the actual gear position (likewise for
flaps).


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-15 Thread Erik Hofman

Tony Peden wrote:

Well, I wasn't saying this was the cuase of the
problem, just *a* 
solution. I figured there might be  a counter
somwhere which decreses 
GearPos by a certain amount, but the check didn't
catch it being close 
to 0.0
Therefore it would en up in an endless loop or
something.

 It's possible.  Do you notice any problem with the
 flaps? (it's the same code:
 FDM/JSBSim/filtersjb/FGKinemat.[h|cpp])

Well, not noticably. But the problem is there.
When uncommenting line 132 from FGKinemat.cpp it shows the flap code 
keeps getting updated, but the value doesn't change (while flap down 
behaves nicely).

There must be something wrong with the retraction code.

Erik


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-14 Thread John Check

On Thursday 14 February 2002 01:59 am, you wrote:
  That's the same error I have on the C172 at simulator startup.  FYI.
 
   JSBsim C310 crashes the sim on gear retraction.

 So ... this is an error?

 This is the same message I get if I do this in real life.

 ;-)

 Jon



Happens in the air too


 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-14 Thread Erik Hofman

Tony Peden wrote:

Well, I wasn't saying this was the cuase of the
problem, just *a* 
solution. I figured there might be  a counter
somwhere which decreses 
GearPos by a certain amount, but the check didn't
catch it being close 
to 0.0
Therefore it would en up in an endless loop or
something.

 It's possible.  Do you notice any problem with the
 flaps? (it's the same code:
 FDM/JSBSim/filtersjb/FGKinemat.[h|cpp])

No problems with flaps. Gear still doesn't work (did a complete compile 
from scratch again). :(

Erik



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-13 Thread John Check

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!

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-13 Thread Alex Perry

That's the same error I have on the C172 at simulator startup.  FYI.

 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!
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 
 

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] JSBsim C310 crashes the sim on gear retraction.

2002-02-13 Thread Jon S. Berndt


 That's the same error I have on the C172 at simulator startup.  FYI.
 
  JSBsim C310 crashes the sim on gear retraction.

So ... this is an error?

This is the same message I get if I do this in real life.

;-)

Jon



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel