--- Erik Hofman <[EMAIL PROTECTED]> wrote:
> Tony Peden 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 {
> >>
> >>
> >>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)
>
> 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])
>
> Erik
>
>
>
>
>
>
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
>
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
>
>
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel