1
0
Fork 0

Bug fix for JSBSim.

The feature fail_hardover of the <actuator> component was not giving the correct output in some occurences when clipmax was smaller in absolute value than clipmin.
This commit is contained in:
Bertrand Coconnier 2018-11-04 17:03:46 +01:00
parent 4c7402fb23
commit d3aa4b19a1

View file

@ -156,7 +156,7 @@ bool FGActuator::Run(void )
if( fcs->GetTrimStatus() ) initialized = 0;
if (fail_zero) Input = 0;
if (fail_hardover) Input = clipmax*sign(Input);
if (fail_hardover) Input = Input >= 0.0 ? clipmax : clipmin;
Output = Input; // Perfect actuator. At this point, if no failures are present
// and no subsequent lag, limiting, etc. is done, the output