]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/raw_ctrls.hxx
Update controls so we can specify each tank on/off individually. Also
[flightgear.git] / src / Network / raw_ctrls.hxx
index d955e1f6b1377178d0d3bcfee4d4b5ad26285b76..576197af899776a9c59472a32e51d3009bcda183 100644 (file)
@@ -30,7 +30,7 @@
 # error This library requires C++
 #endif                                   
 
-const int FG_RAW_CTRLS_VERSION = 6;
+const int FG_RAW_CTRLS_VERSION = 7;
 
 
 // Define a structure containing the control parameters
@@ -43,7 +43,8 @@ public:
 
     enum {
         FG_MAX_ENGINES = 4,
-        FG_MAX_WHEELS = 3
+        FG_MAX_WHEELS = 3,
+        FG_MAX_TANKS = 4
     };
 
     // Aero controls
@@ -61,6 +62,10 @@ public:
     double mixture[FG_MAX_ENGINES];      //  0 ... 1
     double prop_advance[FG_MAX_ENGINES]; //  0 ... 1
 
+    // Fuel management
+    int num_tanks;                       // number of valid tanks
+    bool fuel_selector[FG_MAX_TANKS];    // false = off, true = on
+
     // Brake controls
     int num_wheels;                     // number of valid wheels
     double brake[FG_MAX_WHEELS];         //  0 ... 1