X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fairspeed_indicator.hxx;h=6f10b9ddb01a5fab3154e6e08891cd8171419759;hb=c1d06064c8eec5f058f031031cde944489a31b40;hp=1047608cb9863388ed0dcbe681cfec6446e67e53;hpb=f72891e113b79c96e23f46a8ae2a0ecdacc9155f;p=flightgear.git diff --git a/src/Instrumentation/airspeed_indicator.hxx b/src/Instrumentation/airspeed_indicator.hxx index 1047608cb..6f10b9ddb 100644 --- a/src/Instrumentation/airspeed_indicator.hxx +++ b/src/Instrumentation/airspeed_indicator.hxx @@ -11,8 +11,8 @@ # error This library requires C++ #endif -#include -#include
+#include +#include /** @@ -20,20 +20,22 @@ * * Input properties: * - * /instrumentation/airspeed-indicator/serviceable - * /systems/pitot[0]/total-pressure-inhg - * /systems/static[0]/pressure-inhg + * /instrumentation/"name"/serviceable + * "pitot_port"/total-pressure-inhg + * "static_port"/pressure-inhg + * /environment/density-slugft3 * * Output properties: * - * /instrumentation/airspeed-indicator/indicated-speed-kt + * /instrumentation/"name"/indicated-speed-kt */ -class AirspeedIndicator : public FGSubsystem +class AirspeedIndicator : public SGSubsystem { public: - AirspeedIndicator (); + AirspeedIndicator ( SGPropertyNode *node ); + AirspeedIndicator ( int i); virtual ~AirspeedIndicator (); virtual void init (); @@ -41,9 +43,14 @@ public: private: + string name; + int num; + string pitot_port; + string static_port; SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _total_pressure_node; SGPropertyNode_ptr _static_pressure_node; + SGPropertyNode_ptr _density_node; SGPropertyNode_ptr _speed_node; };