1
0
Fork 0

Pass along the status of the gear up/down control lever.

This commit is contained in:
curt 2002-04-25 22:41:13 +00:00
parent 7b69f0cbb4
commit 05bb076784
2 changed files with 5 additions and 1 deletions

View 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()" );

View 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)