diff --git a/src/FDM/YASim/Gear.hpp b/src/FDM/YASim/Gear.hpp index ad08b6ea9..c3b82cba5 100644 --- a/src/FDM/YASim/Gear.hpp +++ b/src/FDM/YASim/Gear.hpp @@ -67,6 +67,7 @@ public: float getRollSpeed() { return _rollSpeed; } float getBumpAltitude(); bool getGroundIsSolid(); + float getGroundFrictionFactor() { return (float)_ground_frictionFactor; } // Takes a velocity of the aircraft relative to ground, a rotation // vector, and a ground plane (all specified in local coordinates) diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index 12c499c42..c77aff9d8 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -478,6 +478,7 @@ void YASim::copyFromYASim() node->setFloatValue("caster-angle-deg", g->getCasterAngle() * RAD2DEG); node->setFloatValue("rollspeed-ms", g->getRollSpeed()); node->setBoolValue("ground-is-solid", g->getGroundIsSolid()!=0); + node->setFloatValue("ground-friction-factor", g->getGroundFrictionFactor()); } Hook* h = airplane->getHook();