sign change to rudder SAS
This commit is contained in:
parent
66bfe04c26
commit
0d9685184a
1 changed files with 3 additions and 3 deletions
|
@ -201,14 +201,14 @@ void uiuc_aerodeflections( double dt )
|
|||
rudder_sas = rudder_sas_KR * R_body;
|
||||
if (use_rudder_sas_max && (fabs(rudder_sas) > (rudder_sas_max*DEG_TO_RAD)))
|
||||
if (rudder_sas >= 0) {
|
||||
rudder -= rudder_sas_max * DEG_TO_RAD;
|
||||
rudder += rudder_sas_max * DEG_TO_RAD;
|
||||
//rudder_sas = rudder_sas_max;
|
||||
} else {
|
||||
rudder -= -rudder_sas_max * DEG_TO_RAD;
|
||||
rudder += -rudder_sas_max * DEG_TO_RAD;
|
||||
//rudder_sas = rudder_sas_max;
|
||||
}
|
||||
else
|
||||
rudder -= rudder_sas;
|
||||
rudder += rudder_sas;
|
||||
// don't exceed rudder deflection limits, assumes drmax = drmin,
|
||||
// i.e. equal rudder throws left and right
|
||||
if (fabs(rudder) > drmax)
|
||||
|
|
Loading…
Reference in a new issue