X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fheading_indicator.hxx;h=f340c05ddadc0aaa33b25f7e311c663ebffb9bf8;hb=f8b689c040100aa21b27081b60a8da1fa99edd37;hp=908495adc39ee140d8387a1f61567fd1828146be;hpb=2119db35c3f596268e2ee21d3cd8c359a85cd1ed;p=flightgear.git diff --git a/src/Instrumentation/heading_indicator.hxx b/src/Instrumentation/heading_indicator.hxx index 908495adc..f340c05dd 100644 --- a/src/Instrumentation/heading_indicator.hxx +++ b/src/Instrumentation/heading_indicator.hxx @@ -12,8 +12,7 @@ #endif #include - -#include
+#include #include "gyro.hxx" @@ -21,29 +20,29 @@ /** * Model a vacuum-powered heading indicator. * - * This first, simple draft is hard-wired to vacuum pump #1. - * * Input properties: * - * /instrumentation/heading-indicator/serviceable - * /instrumentation/heading-indicator/spin - * /instrumentation/heading-indicator/offset-deg + * /instrumentation/"name"/serviceable + * /instrumentation/"name"/spin + * /instrumentation/"name"/offset-deg * /orientation/heading-deg - * /systems/vacuum[0]/suction-inhg + * "vacuum_system"/suction-inhg * * Output properties: * - * /instrumentation/heading-indicator/indicated-heading-deg + * /instrumentation/"name"/indicated-heading-deg */ -class HeadingIndicator : public FGSubsystem +class HeadingIndicator : public SGSubsystem { public: + HeadingIndicator ( SGPropertyNode *node ); HeadingIndicator (); virtual ~HeadingIndicator (); virtual void init (); + virtual void reinit (); virtual void bind (); virtual void unbind (); virtual void update (double dt); @@ -53,11 +52,17 @@ private: Gyro _gyro; double _last_heading_deg; + std::string _name; + int _num; + std::string _suction; + SGPropertyNode_ptr _offset_node; SGPropertyNode_ptr _heading_in_node; SGPropertyNode_ptr _suction_node; SGPropertyNode_ptr _heading_out_node; - + SGPropertyNode_ptr _heading_bug_error_node; + SGPropertyNode_ptr _heading_bug_node; + }; #endif // __INSTRUMENTS_HEADING_INDICATOR_HXX