]> git.mxchange.org Git - flightgear.git/commitdiff
Csaba/Jester : initialize all per-engine and per-tank attributes
authorfredb <fredb>
Sat, 17 Jan 2009 10:05:05 +0000 (10:05 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 18 Jan 2009 22:10:52 +0000 (23:10 +0100)
src/Aircraft/controls.cxx

index 2e3da344c27445d30b3ef68ecc3dd8804f1d4580..9df598427f5b3f592b55c9eeba1a0d20da5ed1ba 100644 (file)
@@ -205,8 +205,10 @@ FGControls::init ()
        magnetos[engine] = 0;
        feed_tank[engine] = -1; // set to -1 to turn off all tanks 0 feeds all engines from center body tank
        starter[engine] = false;
+        feather[engine] = false;
         ignition[engine] = false;
         fire_switch[engine] = false;
+        fire_bottle_discharge[engine] = false;
         cutoff[engine] = true;
         augmentation[engine] = false;
         reverser[engine] = false;
@@ -214,8 +216,22 @@ FGControls::init ()
         nitrous_injection[engine] = false;
         cowl_flaps_norm[engine] = 0.0;
         condition[engine] = 1.0;
+        carb_heat[engine] = false;
+        inlet_heat[engine] = false;
+        generator_breaker[engine] = false;
+        bus_tie[engine] = false;
+        engine_bleed[engine] = false;
     }
 
+    for ( int tank = 0; tank < MAX_TANKS; tank++ ) {
+        fuel_selector[tank] = false;
+        to_engine[tank] = 0;
+        to_tank[tank] = 0;
+    }
+    
+    // controls/fuel/tank[n]/pump[p]/
+    bool boost_pump[MAX_TANKS * MAX_BOOSTPUMPS];
+
     brake_left = brake_right
         = copilot_brake_left = copilot_brake_right
         = brake_parking = 0.0;