]> git.mxchange.org Git - flightgear.git/commitdiff
Pass along the status of the gear up/down control lever.
authorcurt <curt>
Thu, 25 Apr 2002 22:41:13 +0000 (22:41 +0000)
committercurt <curt>
Thu, 25 Apr 2002 22:41:13 +0000 (22:41 +0000)
src/Network/native_ctrls.cxx
src/Network/raw_ctrls.hxx

index 8162efd0ff2ee3d760721bfcff5c887e2cbf38a3..e09763749c41050763b93079416649ee2f1016de 100644 (file)
@@ -96,6 +96,7 @@ static void raw2global( const FGRawCtrls *raw, FGControls *global ) {
        for ( i = 0; i < FGRawCtrls::FG_MAX_WHEELS; ++i ) {
            globals->get_controls()->set_brake( i, raw->brake[i] );
        }
+       globals->get_controls()->set_gear_down( raw->gear_handle );
        scenery.set_cur_elev( raw->hground );
     } else {
        SG_LOG( SG_IO, SG_ALERT, "Error: version mismatch in raw2global()" );
index 4f1688c5c3e8905713b0a988f84fdff34d5fb3cc..d955e1f6b1377178d0d3bcfee4d4b5ad26285b76 100644 (file)
@@ -30,7 +30,7 @@
 # error This library requires C++
 #endif                                   
 
-const int FG_RAW_CTRLS_VERSION = 5;
+const int FG_RAW_CTRLS_VERSION = 6;
 
 
 // Define a structure containing the control parameters
@@ -64,6 +64,9 @@ public:
     // 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
 
     // Other values of use to a remote FDM
     double hground;                     // ground elevation (meters)