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