]> git.mxchange.org Git - flightgear.git/commitdiff
Tweak control input estimation gains.
authorcurt <curt>
Mon, 11 Jun 2007 20:14:40 +0000 (20:14 +0000)
committercurt <curt>
Mon, 11 Jun 2007 20:14:40 +0000 (20:14 +0000)
utils/GPSsmooth/UGear_main.cxx

index 28b806907d47fd31e2a7e6caa528b42470044d63..c329be01b50a1162c8d3a9e1548c58f85a06fa36 100644 (file)
@@ -211,8 +211,8 @@ static void ugear2fg( gps *gpspacket, imu *imupacket, nav *navpacket,
         static float est_elev = 0.0;
         static float est_aileron = 0.0;
         static float est_rudder = 0.0;
-        est_elev = 0.95 * est_elev + 0.05 * (imupacket->q * 8);
-        est_aileron = 0.95 * est_aileron + 0.05 * (imupacket->p * 8);
+        est_elev = 0.99 * est_elev + 0.01 * (imupacket->q * 10);
+        est_aileron = 0.95 * est_aileron + 0.05 * (imupacket->p * 5);
         est_rudder = 0.95 * est_rudder + 0.05 * (imupacket->r * 8);
         fdm->elevator = -est_elev;
         fdm->left_aileron = est_aileron;