From: ehofman Date: Thu, 10 Nov 2005 10:04:33 +0000 (+0000) Subject: Expose the strut compression. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1602bd1aae96909f90bf0617876434e9a1780f1;p=flightgear.git Expose the strut compression. --- diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 6b8fb7bfb..d7ffc2ad5 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -1023,6 +1023,7 @@ void FGJSBsim::init_gear(void ) node->setBoolValue("has-brake", gear->GetBrakeGroup() > 0); node->setDoubleValue("position-norm", FCS->GetGearPos()); node->setDoubleValue("tire-pressure-norm", gear->GetTirePressure()); + node->setDoubleValue("compression-norm", gear->GetCompLen()); if ( gear->GetSteerable() ) node->setDoubleValue("steering-norm", gear->GetSteerNorm()); } @@ -1038,6 +1039,7 @@ void FGJSBsim::update_gear(void) node->getChild("wow", 0, true)->setBoolValue( gear->GetWOW()); node->getChild("position-norm", 0, true)->setDoubleValue(FCS->GetGearPos()); gear->SetTirePressure(node->getDoubleValue("tire-pressure-norm")); + node->setDoubleValue("compression-norm", gear->GetCompLen()); if ( gear->GetSteerable() ) node->setDoubleValue("steering-norm", gear->GetSteerNorm()); }