]> git.mxchange.org Git - flightgear.git/commitdiff
fixes to remove warnings
authorTim Moore <timoore@redhat.com>
Mon, 24 Aug 2009 15:56:39 +0000 (17:56 +0200)
committerTim Moore <timoore@redhat.com>
Mon, 24 Aug 2009 15:56:39 +0000 (17:56 +0200)
Comment out unused variables; fix a real bug in uiuc_gear().

src/FDM/UIUCModel/uiuc_gear.cpp
src/FDM/UIUCModel/uiuc_recorder.cpp

index f05c6211fe9f7d1b7b0bf3e5269f3bcb34a549d3..da120d29f5eadfd6c09daeee18bd28ff263e1cb6 100644 (file)
@@ -275,12 +275,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 +377,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);
              }
              
index cd0ca2414392cf7c6a8fd64430b9f3bed2363125..97e93b59c2da98b81ebb35107ade12951c932ab0 100644 (file)
@@ -105,11 +105,11 @@ void uiuc_recorder( double dt )
 {
   stack command_list;
   string linetoken;
-  static int init = 0;
+  // static int init = 0;
   static int recordStep = 0;
   string record_variables = "# ";
 
-  int modulus = recordStep % recordRate;
+  // int modulus = recordStep % recordRate;
 
   //static double lat1;
   //static double long1;