#endif
#include <simgear/props/props.hxx>
-
-#include <Main/fgfs.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
/**
*
* 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 );
virtual ~AirspeedIndicator ();
virtual void init ();
private:
+ string _name;
+ unsigned int _num;
+ string _total_pressure;
+ string _static_pressure;
SGPropertyNode_ptr _serviceable_node;
SGPropertyNode_ptr _total_pressure_node;
SGPropertyNode_ptr _static_pressure_node;