X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fmrg.hxx;h=25be4d8e6923b8b454c577ce5b94c51650adcf71;hb=0b9adf8854398461333eba43df18fa2f5c8231a1;hp=b10f653ce61ff13c63157240e9bfa3d4622d9cfb;hpb=eb6b28f5074654f25fb9118160a70f5a114f6970;p=flightgear.git diff --git a/src/Instrumentation/mrg.hxx b/src/Instrumentation/mrg.hxx index b10f653ce..25be4d8e6 100644 --- a/src/Instrumentation/mrg.hxx +++ b/src/Instrumentation/mrg.hxx @@ -15,7 +15,7 @@ /** - * Model a vacuum-powered attitude indicator. + * Model an electrically-powered master reference gyro. * * Input properties: * @@ -25,7 +25,6 @@ * /instrumentation/"name"/tumble-norm * /orientation/pitch-deg * /orientation/roll-deg - * "vacuum-system"/suction-inhg * * Output properties: * @@ -50,8 +49,10 @@ public: private: - string name; - int num; + static const double gravity; //conversion factor + + std::string _name; + int _num; double _last_roll; double _last_pitch; @@ -65,6 +66,9 @@ private: double _last_roll_rate; double _last_pitch_rate; double _last_yaw_rate; + double _last_g; + double _erect_time; + double _g_error; Gyro _gyro; @@ -75,6 +79,7 @@ private: SGPropertyNode_ptr _pitch_in_node; SGPropertyNode_ptr _roll_in_node; SGPropertyNode_ptr _hdg_in_node; + SGPropertyNode_ptr _hdg_mag_in_node; SGPropertyNode_ptr _g_in_node; SGPropertyNode_ptr _electrical_node; SGPropertyNode_ptr _pitch_int_node; @@ -83,6 +88,7 @@ private: SGPropertyNode_ptr _pitch_out_node; SGPropertyNode_ptr _roll_out_node; SGPropertyNode_ptr _hdg_out_node; + SGPropertyNode_ptr _hdg_mag_out_node; SGPropertyNode_ptr _pitch_rate_out_node; SGPropertyNode_ptr _roll_rate_out_node; SGPropertyNode_ptr _hdg_rate_out_node; @@ -91,6 +97,8 @@ private: SGPropertyNode_ptr _roll_rate_node; SGPropertyNode_ptr _pitch_rate_node; SGPropertyNode_ptr _responsiveness_node; + SGPropertyNode_ptr _hdg_input_source_node; + SGPropertyNode_ptr _fast_erect_node; }; #endif // __INSTRUMENTS_MRG_HXX