X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fattitude_indicator.hxx;h=4bdc48b90c51a9452f895e3dabad25bd2945a65c;hb=d051ba5cd20bed24bce73f540b1f4d37273d7b12;hp=b71e742c21f188ee31668e98bb3c6afb75f66fc3;hpb=980012e1682fdb27c9b9ec27edea0b549d603f9d;p=flightgear.git diff --git a/src/Instrumentation/attitude_indicator.hxx b/src/Instrumentation/attitude_indicator.hxx index b71e742c2..4bdc48b90 100644 --- a/src/Instrumentation/attitude_indicator.hxx +++ b/src/Instrumentation/attitude_indicator.hxx @@ -20,30 +20,28 @@ /** * Model a vacuum-powered attitude indicator. * - * This first, simple draft is hard-wired to vacuum pump #1. - * * Input properties: * - * /instrumentation/attitude-indicator/config/tumble-flag - * /instrumentation/attitude-indicator/serviceable - * /instrumentation/attitude-indicator/caged-flag - * /instrumentation/attitude-indicator/tumble-norm + * /instrumentation/"name"/config/tumble-flag + * /instrumentation/"name"/serviceable + * /instrumentation/"name"/caged-flag + * /instrumentation/"name"/tumble-norm * /orientation/pitch-deg * /orientation/roll-deg - * /systems/vacuum[0]/suction-inhg + * "vacuum-system"/suction-inhg * * Output properties: * - * /instrumentation/attitude-indicator/indicated-pitch-deg - * /instrumentation/attitude-indicator/indicated-roll-deg - * /instrumentation/attitude-indicator/tumble-norm + * /instrumentation/"name"/indicated-pitch-deg + * /instrumentation/"name"/indicated-roll-deg + * /instrumentation/"name"/tumble-norm */ class AttitudeIndicator : public SGSubsystem { public: - AttitudeIndicator (); + AttitudeIndicator ( SGPropertyNode *node ); virtual ~AttitudeIndicator (); virtual void init (); @@ -53,6 +51,10 @@ public: private: + std::string _name; + int _num; + std::string _suction; + Gyro _gyro; SGPropertyNode_ptr _tumble_flag_node; @@ -66,6 +68,9 @@ private: SGPropertyNode_ptr _pitch_out_node; SGPropertyNode_ptr _roll_out_node; + double spin_thresh; + double max_roll_error; + double max_pitch_error; }; #endif // __INSTRUMENTS_ATTITUDE_INDICATOR_HXX