From 05bb0767847575f544dbf54b08ad36748e97e0ca Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 25 Apr 2002 22:41:13 +0000 Subject: [PATCH] Pass along the status of the gear up/down control lever. --- src/Network/native_ctrls.cxx | 1 + src/Network/raw_ctrls.hxx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Network/native_ctrls.cxx b/src/Network/native_ctrls.cxx index 8162efd0f..e09763749 100644 --- a/src/Network/native_ctrls.cxx +++ b/src/Network/native_ctrls.cxx @@ -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()" ); diff --git a/src/Network/raw_ctrls.hxx b/src/Network/raw_ctrls.hxx index 4f1688c5c..d955e1f6b 100644 --- a/src/Network/raw_ctrls.hxx +++ b/src/Network/raw_ctrls.hxx @@ -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) -- 2.39.2