X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FUIUCModel%2Fuiuc_gear.cpp;h=31a87d0b98493960bba9e929fa683f3901c26fbf;hb=70b4f38ebccbafea664ed2310eaf990bd2b9edd8;hp=6c67b7957a8c4bc9e4d1f2271f6675a738a52a98;hpb=12fc19080b8bae18b25c1cf6e5361852cc534a2f;p=flightgear.git diff --git a/src/FDM/UIUCModel/uiuc_gear.cpp b/src/FDM/UIUCModel/uiuc_gear.cpp index 6c67b7957..31a87d0b9 100644 --- a/src/FDM/UIUCModel/uiuc_gear.cpp +++ b/src/FDM/UIUCModel/uiuc_gear.cpp @@ -57,8 +57,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - USA or view http://www.gnu.org/copyleft/gpl.html. + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **********************************************************************/ @@ -68,16 +67,10 @@ #include #include -#include #include
#include "uiuc_gear.h" - - -SG_USING_STD(cerr); - - #define HEIGHT_AGL_WHEEL d_wheel_rwy_local_v[2] @@ -281,12 +274,14 @@ void uiuc_gear() clear3(f_wheel_local_v); reaction_normal_force=0; +#if 0 static const SGPropertyNode * gear_wow = fgGetNode("/gear/gear[0]/wow", false); static const SGPropertyNode * gear_wow1 = fgGetNode("/gear/gear[1]/wow", false); static const SGPropertyNode * gear_wow2 - = fgGetNode("/gear/gear[2]/wow", false); + = fgGetNode("/gear/gear[2]/wow", false); +#endif fgSetBool("/gear/gear[0]/wow", false); fgSetBool("/gear/gear[1]/wow", false); fgSetBool("/gear/gear[2]/wow", false); @@ -381,7 +376,7 @@ void uiuc_gear() cross3( d_wheel_cg_body_v, tempF, tempM ); /* Sum forces and moments across all wheels */ - if (tempF) { + if (tempF[0] != 0.0 || tempF[1] != 0.0 || tempF[2] != 0.0) { fgSetBool("/gear/gear[1]/wow", true); }