]> git.mxchange.org Git - flightgear.git/commit
Fix YASim's /accelerations/pilot/{x,y,z}-accel-fps_sec computations. These
authorCurtis L. Olson <curt0001@flightgear.org>
Thu, 5 Jan 2012 01:17:32 +0000 (19:17 -0600)
committerCurtis L. Olson <curt0001@flightgear.org>
Thu, 5 Jan 2012 01:17:32 +0000 (19:17 -0600)
commitcf86d37514ea000acc9b20284a1c1efe89f2697b
tree68b510cbca69a8dacb85e4b4255895520b1e6602
parentaf150d1a56ee49696b7dc1fdf00675a910a70217
Fix YASim's /accelerations/pilot/{x,y,z}-accel-fps_sec computations.  These
are the accelerations (forces) as felt from the pilot's perspective.  This
combines the accelerations due to change in velocity vector and gravity.

Previosly the gravity part was right, but the body accelerations were being
transformed incorrectly.  The error was very subtle and basically amounted to
the fact that inverting an axis of a vector before transforming it is not
equivalent to transforming the vector and then inverting that axis.

After this fix, pilot accelerations + gyro + gps can be fed into an external
kalman filter and it will converge properly (extra confirmation that there
was a problem and this fix corrects it.)
src/FDM/YASim/Airplane.cpp
src/FDM/YASim/YASim.cxx