1
0
Fork 0

sign change to rudder SAS

This commit is contained in:
mselig 2003-05-22 14:53:17 +00:00
parent 66bfe04c26
commit 0d9685184a

View file

@ -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)