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:
parent
4c7402fb23
commit
d3aa4b19a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue