From: curt Date: Mon, 11 Jun 2007 20:14:40 +0000 (+0000) Subject: Tweak control input estimation gains. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=78cb8f5ca35c14c91ec709330a6af2b4e880de43;p=flightgear.git Tweak control input estimation gains. --- diff --git a/utils/GPSsmooth/UGear_main.cxx b/utils/GPSsmooth/UGear_main.cxx index 28b806907..c329be01b 100644 --- a/utils/GPSsmooth/UGear_main.cxx +++ b/utils/GPSsmooth/UGear_main.cxx @@ -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;