Hello,
I'm (at last) able start FG/JSBsim from the ground on my windows. There
is some problem (or problem gets to the surface there) on
FGInitialCondition getAlpha call during startup. In next, the solve()
member is called, the f1 and f3 locals obtains a "0.0" value. Then
division by 0 will be performed in next and JSBsim hangs...
bool FGInitialCondition::solve(float *y,float x) {
float x1,x2,x3,f1,f2,f3,d,d0;
float eps=1E-5;
float const relax =0.9;
int i;
bool success=false;
//initializations
d=1;
x1=xlo;x3=xhi;
f1=(this->*sfunc)(x1)-x;
f3=(this->*sfunc)(x3)-x;
// both f1 and f3 got 0.0 here...
d0=fabs(x3-x1);
//iterations
i=0;
while ((fabs(d) > eps) && (i < 100)) {
d=(x3-x1)/d0;
x2=x1-d*d0*f1/(f3-f1);
// division by 0 here...
.
.
When I put next temporary code after this->*sfunc() calls:
if (f3-f1 == 0.0)
f3+= 0.000000000001;
The JSBsim started OK on runway.
Could somebody help me, what is reason of it or what caused it? Maybe
some configuration or startup parameter is wrongly read?
I'm not too familiar with JSBsim yet...
....
Next, there is possible to fly with X15, but take-of is too long and I
must use some terrain undulation to get to the air. Is it OK? On the
air, the plane behavior is well...
When I selected C172, there is not possible to fly. Cessna looked like
with engine OFF, not responding to the throttle...
....
Next there is probably some bug in "RESET" menu option function, FG
crashes always then.
Richard
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel