X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fvertical_speed_indicator.hxx;h=7c16f27d2d124e62904c228e9ed4151f6492f0ec;hb=1867ccb4a8484b9bc856c88629e09e25bcc35d42;hp=0c2a5a3a92209ba889a413a60443f50667191893;hpb=f614545fc5a6f0fb12a05344d9ee41b2a49cc04a;p=flightgear.git diff --git a/src/Instrumentation/vertical_speed_indicator.hxx b/src/Instrumentation/vertical_speed_indicator.hxx index 0c2a5a3a9..7c16f27d2 100644 --- a/src/Instrumentation/vertical_speed_indicator.hxx +++ b/src/Instrumentation/vertical_speed_indicator.hxx @@ -1,6 +1,8 @@ // vertical_speed_indicator.hxx - a regular VSI tied to the static port. // Written by David Megginson, started 2002. // +// Last change by E. van den Berg, 17.02.1013 +// // This file is in the Public Domain and comes with no warranty. @@ -26,6 +28,8 @@ * Output properties: * * /instrumentation/"name"/indicated-speed-fpm + * /instrumentation/"name"/indicated-speed-mps + * /instrumentation/"name"/indicated-speed-kts */ class VerticalSpeedIndicator : public SGSubsystem { @@ -33,23 +37,31 @@ class VerticalSpeedIndicator : public SGSubsystem public: VerticalSpeedIndicator ( SGPropertyNode *node ); - VerticalSpeedIndicator (); virtual ~VerticalSpeedIndicator (); virtual void init (); + virtual void reinit (); virtual void update (double dt); private: - double _internal_pressure_inhg; + double _casing_pressure_Pa; + double _casing_airmass_kg; + double _casing_density_kgpm3; + double _orifice_massflow_kgps; - string name; - int num; - string static_port; + std::string _name; + int _num; + std::string _static_pressure; + std::string _static_temperature; SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _pressure_node; - SGPropertyNode_ptr _speed_node; + SGPropertyNode_ptr _temperature_node; + SGPropertyNode_ptr _speed_fpm_node; + SGPropertyNode_ptr _speed_mps_node; + SGPropertyNode_ptr _speed_kts_node; + SGPropertyNode_ptr _speed_up_node; };