X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAircraft%2Fcontrols.hxx;h=d9ea286f7ebf6946917643aaa91ff1f172ec10f4;hb=1ae2b59333dc914d10bcc726bc94e71cbf3e411e;hp=e9e5562c71b80e817c678d04580c648c640b581b;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Aircraft/controls.hxx b/src/Aircraft/controls.hxx index e9e5562c7..d9ea286f7 100644 --- a/src/Aircraft/controls.hxx +++ b/src/Aircraft/controls.hxx @@ -24,16 +24,8 @@ #ifndef _CONTROLS_HXX #define _CONTROLS_HXX -#include #include -#include
- -#ifndef __cplusplus -# error This library requires C++ -#endif - - // Define a structure containing the control parameters class FGControls : public SGSubsystem @@ -43,7 +35,7 @@ public: enum { ALL_ENGINES = -1, - MAX_ENGINES = 10 + MAX_ENGINES = 12 }; enum { @@ -161,6 +153,7 @@ private: double copilot_brake_right; double brake_parking; double steering; + bool nose_wheel_steering; bool gear_down; bool antiskid; bool tailhook; @@ -258,7 +251,7 @@ private: int lateral_mode; - SGPropertyNode * auto_coordination; + SGPropertyNode_ptr auto_coordination; public: @@ -346,6 +339,7 @@ public: inline double get_copilot_brake_right() const { return copilot_brake_right; } inline double get_brake_parking() const { return brake_parking; } inline double get_steering() const { return steering; } + inline bool get_nose_wheel_steering() const { return nose_wheel_steering; } inline bool get_gear_down() const { return gear_down; } inline bool get_antiskid() const { return antiskid; } inline bool get_tailhook() const { return tailhook; } @@ -533,6 +527,7 @@ public: void set_brake_parking( double pos ); void set_steering( double pos ); void move_steering( double amt ); + void set_nose_wheel_steering( bool nws ); void set_gear_down( bool gear ); void set_antiskid( bool val ); void set_tailhook( bool val );