]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/raw_ctrls.hxx
Added static port system and a new altimeter model connected to it.
[flightgear.git] / src / Network / raw_ctrls.hxx
index 91a74cf41e0ba0efb65da2b6c3372ca43473c853..69bb3968327b60f6b91f5d373fefca33cce11f72 100644 (file)
 # error This library requires C++
 #endif                                   
 
-const int FG_RAW_CTRLS_VERSION = 2;
+const int FG_RAW_CTRLS_VERSION = 11;
 
-const int FG_MAX_ENGINES = 10;
-const int FG_MAX_WHEELS = 3;
 
 // Define a structure containing the control parameters
 
@@ -43,19 +41,49 @@ public:
 
     int version;                        // increment when data values change
 
-    // Controls
+    enum {
+        FG_MAX_ENGINES = 4,
+        FG_MAX_WHEELS = 3,
+        FG_MAX_TANKS = 4
+    };
+
+    // Aero controls
     double aileron;                     // -1 ... 1
     double elevator;                    // -1 ... 1
     double elevator_trim;               // -1 ... 1
     double rudder;                      // -1 ... 1
     double flaps;                       //  0 ... 1
+    bool flaps_power;                    //  true = power available
+
+    // Engine controls
+    int num_engines;                    // number of valid engines
+    int magnetos[FG_MAX_ENGINES];
+    bool starter_power[FG_MAX_ENGINES];  // true = starter power
     double throttle[FG_MAX_ENGINES];     //  0 ... 1
     double mixture[FG_MAX_ENGINES];      //  0 ... 1
+    bool fuel_pump_power[FG_MAX_ENGINES];// true = on
     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
+    
+    // Landing Gear
+    bool gear_handle; // true=gear handle down; false= gear handle up
+
+    // Switches
+    bool master_bat;
+    bool master_alt;
+    bool master_avionics;
 
-    // Other interesting/useful values
+    // Other values of use to a remote FDM
     double hground;                     // ground elevation (meters)
+    double magvar;                      // local magnetic variation in degrees.
+    int speedup;                        // integer speedup multiplier
 };