X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fheading_indicator.hxx;h=f3d6f5f155cb83c3a8f0851676ef228a7cef9824;hb=73fbc05a6b6af52825c792902d7738f9cad7ec2f;hp=6e414c9c4a2af4120b0a6fb5b2a9849e5be76fe7;hpb=5289055776b645f25234f1f1f012727baa31e863;p=flightgear.git diff --git a/src/Instrumentation/heading_indicator.hxx b/src/Instrumentation/heading_indicator.hxx index 6e414c9c4..f3d6f5f15 100644 --- a/src/Instrumentation/heading_indicator.hxx +++ b/src/Instrumentation/heading_indicator.hxx @@ -11,31 +11,33 @@ # error This library requires C++ #endif -#include -#include
+#include +#include + +#include "gyro.hxx" /** * 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/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 (); @@ -46,15 +48,20 @@ public: private: - double _spin; + Gyro _gyro; double _last_heading_deg; - SGPropertyNode_ptr _serviceable_node; + string _name; + int _num; + 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