]> git.mxchange.org Git - flightgear.git/blob - src/Systems/vacuum.hxx
Moved some of the low level scene graph construction code over to simgear.
[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/props/props.hxx>
15
16 #include <Main/fgfs.hxx>
17
18
19 /**
20  * Model a vacuum-pump system.
21  *
22  * This first, simple draft is hard-wired to engine #1.
23  *
24  * Input properties:
25  *
26  * /engines/engine[0]/rpm
27  * /environment/pressure-inhg
28  * /systems/vacuum[0]/serviceable
29  *
30  * Output properties:
31  *
32  * /systems/vacuum[0]/suction-inhg
33  */
34 class VacuumSystem : public FGSubsystem
35 {
36
37 public:
38
39     VacuumSystem ();
40     virtual ~VacuumSystem ();
41
42     virtual void init ();
43     virtual void bind ();
44     virtual void unbind ();
45     virtual void update (double dt);
46
47 private:
48
49     SGPropertyNode_ptr _serviceable_node;
50     SGPropertyNode_ptr _rpm_node;
51     SGPropertyNode_ptr _pressure_node;
52     SGPropertyNode_ptr _suction_node;
53     
54 };
55
56 #endif // __SYSTEMS_VACUUM_HXX