]> git.mxchange.org Git - flightgear.git/commitdiff
Vivian caught some missing length conversions in the gear offset
authorandy <andy>
Fri, 14 Oct 2005 21:27:33 +0000 (21:27 +0000)
committerandy <andy>
Fri, 14 Oct 2005 21:27:33 +0000 (21:27 +0000)
properties (What are these for?  I have no memory of these
properties...)

src/FDM/YASim/YASim.cxx

index d374a3e5e09f5dc368735c06b566066205b2a683..ad02f3782b84ca1e4dfef25736d3b97ecd942c81 100644 (file)
@@ -142,9 +142,9 @@ void YASim::init()
        SGPropertyNode * node = fgGetNode("gear/gear", i, true);
         float pos[3];
         g->getPosition(pos);
-       node->setDoubleValue("xoffset-in", pos[0]);
-       node->setDoubleValue("yoffset-in", pos[1]);
-       node->setDoubleValue("zoffset-in", pos[2]);
+       node->setDoubleValue("xoffset-in", pos[0] * M2FT * 12);
+       node->setDoubleValue("yoffset-in", pos[1] * M2FT * 12);
+       node->setDoubleValue("zoffset-in", pos[2] * M2FT * 12);
     }
 
     // Are we at ground level?  If so, lift the plane up so the gear