1
0
Fork 0

Work around a potential never ending loop problem. A proper fix will be in the next JSBSim update.

This commit is contained in:
ehofman 2004-06-13 18:44:21 +00:00
parent dbfc0eb287
commit 22c0529280

View file

@ -154,6 +154,8 @@ bool FGKinemat::Run(void )
if (Detents[ind] < ThisInput) ThisInput = Detents[ind];
// Compute the time to reach the value in ThisInput
double ThisDt = fabs((ThisInput-Output)/Rate);
if (ThisDt == 0.0)
break;
// and clip to the timestep size
if (dt < ThisDt) ThisDt = dt;
dt -= ThisDt;