]> git.mxchange.org Git - flightgear.git/commitdiff
Switch sign of beta/drift.
authorcurt <curt>
Sun, 23 Jul 2006 17:47:23 +0000 (17:47 +0000)
committercurt <curt>
Sun, 23 Jul 2006 17:47:23 +0000 (17:47 +0000)
src/Instrumentation/HUD/HUD_ladder.cxx

index ae697c17aaa07c1b0a48e38d4bb6b5f755f908d1..847770a0584f5e2ad765534a8ac4aba9242541ca 100644 (file)
@@ -175,14 +175,14 @@ void HUD::Ladder::draw(void)
             actslope = atan(up_vel / ground_vel) * SGD_RADIANS_TO_DEGREES;
         }
 
-        xvvr = (drift * (_compression / globals->get_current_view()->get_aspect_ratio()));
+        xvvr = (-drift * (_compression / globals->get_current_view()->get_aspect_ratio()));
         // drift = ((atan2(Vyy, Vxx) * SGD_RADIANS_TO_DEGREES) - psi);
         // yvvr = (-alpha * _compression);
         // vel_y = (-alpha * cos(roll_value) + drift * sin(roll_value)) * _compression;
         // vel_x = (alpha * sin(roll_value) + drift * cos(roll_value))
         //         * (_compression / globals->get_current_view()->get_aspect_ratio());
         vel_y = -alpha * _compression;
-        vel_x = drift * (_compression / globals->get_current_view()->get_aspect_ratio());
+        vel_x = -drift * (_compression / globals->get_current_view()->get_aspect_ratio());
         //  printf("%f %f %f %f\n",vel_x, vel_y, drift, psi);
 
         //****************************************************************