# error This library requires C++
#endif
-#include <simgear/props/props.hxx>
+#include <simgear/compiler.h>
+
+#include <string>
+using std::string;
-#include <Main/fgfs.hxx>
+#include <simgear/props/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
/**
*
* Input properties:
*
- * /systems/pitot[0]/serviceable
+ * /systems/"name"/serviceable
* /environment/pressure-slugft3
* /environment/density-slugft3
* /velocities/airspeed-kt
*
* Output properties:
*
- * /systems/pitot[0]/total-pressure-inhg
+ * /systems/"name"/total-pressure-inhg
*/
-class PitotSystem : public FGSubsystem
+class PitotSystem : public SGSubsystem
{
public:
- PitotSystem ();
+ PitotSystem ( SGPropertyNode *node );
virtual ~PitotSystem ();
virtual void init ();
private:
+ string _name;
+ int _num;
SGPropertyNode_ptr _serviceable_node;
SGPropertyNode_ptr _pressure_node;
SGPropertyNode_ptr _density_node;
SGPropertyNode_ptr _velocity_node;
+ SGPropertyNode_ptr _slip_angle;
SGPropertyNode_ptr _total_pressure_node;
-
};
#endif // __SYSTEMS_PITOT_HXX