]> git.mxchange.org Git - flightgear.git/blob - src/Systems/vacuum.hxx
Fixed a spelling error in the api. (ouch) :-)
[flightgear.git] / src / Systems / vacuum.hxx
1 // vacuum.hxx - a vacuum pump connected to the aircraft engine.
2 // Written by David Megginson, started 2002.
3 //
4 // This file is in the Public Domain and comes with no warranty.
5
6
7 #ifndef __SYSTEMS_VACUUM_HXX
8 #define __SYSTEMS_VACUUM_HXX 1
9
10 #ifndef __cplusplus
11 # error This library requires C++
12 #endif
13
14 #include <simgear/misc/props.hxx>
15 #include <Main/fgfs.hxx>
16
17
18 /**
19  * Model a vacuum-pump system.
20  *
21  * This first, simple draft is hard-wired to engine #1.
22  *
23  * Input properties:
24  *
25  * /engines/engine[0]/rpm
26  * /environment/pressure-inhg
27  * /systems/vacuum[0]/serviceable
28  *
29  * Output properties:
30  *
31  * /systems/vacuum[0]/suction-inhg
32  */
33 class VacuumSystem : public FGSubsystem
34 {
35
36 public:
37
38     VacuumSystem ();
39     virtual ~VacuumSystem ();
40
41     virtual void init ();
42     virtual void bind ();
43     virtual void unbind ();
44     virtual void update (double dt);
45
46 private:
47
48     SGPropertyNode_ptr _serviceable_node;
49     SGPropertyNode_ptr _rpm_node;
50     SGPropertyNode_ptr _pressure_node;
51     SGPropertyNode_ptr _suction_node;
52     
53 };
54
55 #endif // __SYSTEMS_VACUUM_HXX