Work around a potential never ending loop problem. A proper fix will be in the next JSBSim update.
This commit is contained in:
parent
dbfc0eb287
commit
22c0529280
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue