htab[7]=259186.352; //ft.
MagnitudedAccelDt = MagnitudeAccel = Magnitude = 0.0;
-// turbType = ttNone;
- turbType = ttBerndt; // temporarily disable turbulence until fully tested
+ turbType = ttNone;
+// turbType = ttBerndt; // temporarily disable turbulence until fully tested
TurbGain = 100.0;
if (debug_lvl & 2) cout << "Instantiated: " << Name << endl;
i=0;
while ((fabs(d) > eps) && (i < 100)) {
d=(x3-x1)/d0;
- if (f3-f1 != 0.0) x2 = x1-d*d0*f1/(f3-f1);
- else x2 = x1-d*d0*f1/0.01; // TONY: What is correct? This is a WAG.
-
+ x2 = x1-d*d0*f1/(f3-f1);
+
f2=(this->*sfunc)(x2)-x;
//cout << "solve x1,x2,x3: " << x1 << "," << x2 << "," << x3 << endl;
//cout << " " << f1 << "," << f2 << "," << f3 << endl;