X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fheading_indicator_dg.hxx;h=f5035b15934b2515ccfeda4e26a21660f9aa77b9;hb=805c4cbba15c6922e511b3a20ba5a9cb56ceed4f;hp=89c22f3b9f0b2c22fd59de9aa4d12dfb8ef298d8;hpb=eb6b28f5074654f25fb9118160a70f5a114f6970;p=flightgear.git diff --git a/src/Instrumentation/heading_indicator_dg.hxx b/src/Instrumentation/heading_indicator_dg.hxx index 89c22f3b9..f5035b159 100644 --- a/src/Instrumentation/heading_indicator_dg.hxx +++ b/src/Instrumentation/heading_indicator_dg.hxx @@ -1,64 +1,69 @@ -// heading_indicator.hxx - a vacuum-powered heading indicator. -// Written by David Megginson, started 2002. -// -// This file is in the Public Domain and comes with no warranty. - - -#ifndef __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX -#define __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX 1 - - -#include -#include - -#include "gyro.hxx" - - -/** - * Model an electrically-powered heading indicator. - * - * Input properties: - * - * /instrumentation/"name"/serviceable - * /instrumentation/"name"/spin - * /instrumentation/"name"/offset-deg - * /orientation/heading-deg - * /systems/electrical/outputs/DG - * - * Output properties: - * - * /instrumentation/"name"/indicated-heading-deg - */ -class HeadingIndicatorDG : public SGSubsystem -{ - -public: - - HeadingIndicatorDG ( SGPropertyNode *node ); - HeadingIndicatorDG (); - virtual ~HeadingIndicatorDG (); - - virtual void init (); - virtual void bind (); - virtual void unbind (); - virtual void update (double dt); - -private: - - Gyro _gyro; - double _last_heading_deg; - - string name; - int num; - //string vacuum_system; - - SGPropertyNode_ptr _offset_node; - SGPropertyNode_ptr _heading_in_node; - SGPropertyNode_ptr _serviceable_node; - SGPropertyNode_ptr _heading_out_node; - SGPropertyNode_ptr _electrical_node; - SGPropertyNode_ptr _error_node; - SGPropertyNode_ptr _nav1_error_node; -}; - -#endif // __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX +// heading_indicator.hxx - a vacuum-powered heading indicator. +// Written by David Megginson, started 2002. +// +// This file is in the Public Domain and comes with no warranty. + + +#ifndef __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX +#define __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX 1 + + +#include +#include +#include + +#include "gyro.hxx" + + +/** + * Model an electrically-powered heading indicator. + * + * Input properties: + * + * /instrumentation/"name"/serviceable + * /instrumentation/"name"/spin + * /instrumentation/"name"/offset-deg + * /orientation/heading-deg + * /systems/electrical/outputs/DG + * + * Output properties: + * + * /instrumentation/"name"/indicated-heading-deg + */ +class HeadingIndicatorDG : public SGSubsystem +{ + +public: + + HeadingIndicatorDG ( SGPropertyNode *node ); + HeadingIndicatorDG (); + virtual ~HeadingIndicatorDG (); + + virtual void init (); + virtual void bind (); + virtual void unbind (); + virtual void update (double dt); + +private: + + Gyro _gyro; + double _last_heading_deg; + + std::string name; + int num; + //string vacuum_system; + + SGPropertyNode_ptr _offset_node; + SGPropertyNode_ptr _heading_in_node; + SGPropertyNode_ptr _serviceable_node; + SGPropertyNode_ptr _heading_out_node; + SGPropertyNode_ptr _electrical_node; + SGPropertyNode_ptr _error_node; + SGPropertyNode_ptr _nav1_error_node; + SGPropertyNode_ptr _align_node; + SGPropertyNode_ptr _yaw_rate_node; + SGPropertyNode_ptr _heading_bug_error_node; + SGPropertyNode_ptr _g_node; +}; + +#endif // __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX