2002-09-28 20:48:53 +00:00
|
|
|
// pitot.hxx - the pitot air system.
|
|
|
|
// Written by David Megginson, started 2002.
|
|
|
|
//
|
|
|
|
// This file is in the Public Domain and comes with no warranty.
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __SYSTEMS_PITOT_HXX
|
|
|
|
#define __SYSTEMS_PITOT_HXX 1
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
# error This library requires C++
|
|
|
|
#endif
|
|
|
|
|
2003-05-06 23:54:17 +00:00
|
|
|
#include <simgear/props/props.hxx>
|
|
|
|
|
2002-09-28 20:48:53 +00:00
|
|
|
#include <Main/fgfs.hxx>
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Model a pitot air system.
|
|
|
|
*
|
|
|
|
* The output is the sum of static and dynamic pressure (not just the
|
|
|
|
* dynamic pressure).
|
|
|
|
*
|
|
|
|
* Input properties:
|
|
|
|
*
|
|
|
|
* /systems/pitot[0]/serviceable
|
|
|
|
* /environment/pressure-slugft3
|
|
|
|
* /environment/density-slugft3
|
2002-10-16 22:09:26 +00:00
|
|
|
* /velocities/airspeed-kt
|
2002-09-28 20:48:53 +00:00
|
|
|
*
|
|
|
|
* Output properties:
|
|
|
|
*
|
|
|
|
* /systems/pitot[0]/total-pressure-inhg
|
|
|
|
*/
|
|
|
|
class PitotSystem : public FGSubsystem
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
PitotSystem ();
|
|
|
|
virtual ~PitotSystem ();
|
|
|
|
|
|
|
|
virtual void init ();
|
|
|
|
virtual void bind ();
|
|
|
|
virtual void unbind ();
|
|
|
|
virtual void update (double dt);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
SGPropertyNode_ptr _serviceable_node;
|
|
|
|
SGPropertyNode_ptr _pressure_node;
|
|
|
|
SGPropertyNode_ptr _density_node;
|
|
|
|
SGPropertyNode_ptr _velocity_node;
|
|
|
|
SGPropertyNode_ptr _total_pressure_node;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __SYSTEMS_PITOT_HXX
|