From: Bertrand <bco...@us...> - 2017-02-21 21:14:16
|
Update of /cvsroot/jsbsim/JSBSim/src/models In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29979/src/models Modified Files: FGLGear.cpp Log Message: Patch from R. Harrison: Expose landing gear x and y positions to properties; mainly for debugging to allow easier tuning of landing gear. Index: FGLGear.cpp =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/src/models/FGLGear.cpp,v retrieving revision 1.124 retrieving revision 1.125 diff -C2 -r1.124 -r1.125 *** FGLGear.cpp 25 Jun 2016 17:48:02 -0000 1.124 --- FGLGear.cpp 21 Feb 2017 21:14:13 -0000 1.125 *************** *** 785,791 **** property_name = base_property_name + "/WOW"; PropertyManager->Tie( property_name.c_str(), &WOW ); property_name = base_property_name + "/z-position"; PropertyManager->Tie( property_name.c_str(), (FGForce*)this, ! &FGForce::GetLocationZ, &FGForce::SetLocationZ); property_name = base_property_name + "/compression-ft"; PropertyManager->Tie( property_name.c_str(), &compressLength ); --- 785,797 ---- property_name = base_property_name + "/WOW"; PropertyManager->Tie( property_name.c_str(), &WOW ); + property_name = base_property_name + "/x-position"; + PropertyManager->Tie( property_name.c_str(), (FGForce*)this, + &FGForce::GetLocationX, &FGForce::SetLocationX); + property_name = base_property_name + "/y-position"; + PropertyManager->Tie( property_name.c_str(), (FGForce*)this, + &FGForce::GetLocationY, &FGForce::SetLocationY); property_name = base_property_name + "/z-position"; PropertyManager->Tie( property_name.c_str(), (FGForce*)this, ! &FGForce::GetLocationZ, &FGForce::SetLocationZ); property_name = base_property_name + "/compression-ft"; PropertyManager->Tie( property_name.c_str(), &compressLength ); |