From 1ad9756a4b8ba37a7a310a8e740e8257eb17075f Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 26 May 2013 20:56:17 +0200 Subject: [PATCH] Fix jsbsim gear location in the property tree. Need to convert from feet to inch. --- src/FDM/JSBSim/JSBSim.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 204945354..b71d8700c 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -1215,9 +1215,9 @@ void FGJSBsim::init_gear(void ) for (int i=0;iGetGearUnit(i); SGPropertyNode * node = fgGetNode("gear/gear", i, true); - node->setDoubleValue("xoffset-in", gear->GetBodyLocation()(1)); - node->setDoubleValue("yoffset-in", gear->GetBodyLocation()(2)); - node->setDoubleValue("zoffset-in", gear->GetBodyLocation()(3)); + node->setDoubleValue("xoffset-in", gear->GetBodyLocation()(1) * 12); + node->setDoubleValue("yoffset-in", gear->GetBodyLocation()(2) * 12); + node->setDoubleValue("zoffset-in", gear->GetBodyLocation()(3) * 12); node->setBoolValue("wow", gear->GetWOW()); node->setDoubleValue("rollspeed-ms", gear->GetWheelRollVel()*0.3043); node->setBoolValue("has-brake", gear->GetBrakeGroup() > 0); -- 2.39.5