]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UIUCModel/uiuc_gear.cpp
YASim performance optimization
[flightgear.git] / src / FDM / UIUCModel / uiuc_gear.cpp
index f05c6211fe9f7d1b7b0bf3e5269f3bcb34a549d3..31a87d0b98493960bba9e929fa683f3901c26fbf 100644 (file)
@@ -67,7 +67,6 @@
 
 #include <simgear/compiler.h>
 #include <simgear/misc/sg_path.hxx>
-#include <Aircraft/aircraft.hxx>
 #include <Main/fg_props.hxx>
 
 #include "uiuc_gear.h"
@@ -275,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);
@@ -375,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);
              }