fixed conversion of airspeed from ft/s to knots as defined in latest JSBSim versions

This commit is contained in:
Simon Schopferer 2019-02-23 17:28:05 +01:00 committed by Andrew Tridgell
parent 11a70536eb
commit 6beac98d4a

View File

@ -428,7 +428,7 @@ void JSBSim::recv_fdm(const struct sitl_input &input)
location.lng = degrees(fdm.longitude) * 1.0e7;
location.alt = fdm.agl*100 + home.alt;
dcm.from_euler(fdm.phi, fdm.theta, fdm.psi);
airspeed = fdm.vcas * FEET_TO_METERS;
airspeed = fdm.vcas * KNOTS_TO_METERS_PER_SECOND;
airspeed_pitot = airspeed;
// update magnetic field