]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/slip_skid_ball.hxx
Win32 fix
[flightgear.git] / src / Instrumentation / slip_skid_ball.hxx
1 // slip_skid_ball.hxx - an slip-skid ball.
2 // Written by David Megginson, started 2003.
3 //
4 // This file is in the Public Domain and comes with no warranty.
5
6
7 #ifndef __INSTRUMENTS_SLIP_SKID_BALL_HXX
8 #define __INSTRUMENTS_SLIP_SKID_BALL_HXX 1
9
10 #ifndef __cplusplus
11 # error This library requires C++
12 #endif
13
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
16
17 #include "gyro.hxx"
18
19
20 /**
21  * Model a slip-skid ball.
22  *
23  * Input properties:
24  *
25  * /instrumentation/"name"/serviceable
26  * /accelerations/pilot/y-accel-fps_sec
27  * /accelerations/pilot/z-accel-fps_sec
28  *
29  * Output properties:
30  *
31  * /instrumentation/"name"/indicated-slip-skid
32  */
33 class SlipSkidBall : public SGSubsystem
34 {
35
36 public:
37
38     SlipSkidBall ( SGPropertyNode *node );
39     SlipSkidBall ();
40     virtual ~SlipSkidBall ();
41
42     virtual void init ();
43     virtual void update (double dt);
44
45 private:
46
47     Gyro _gyro;
48     double _last_pos;
49
50     string name;
51     int num;
52
53     SGPropertyNode_ptr _serviceable_node;
54     SGPropertyNode_ptr _y_accel_node;
55     SGPropertyNode_ptr _z_accel_node;
56     SGPropertyNode_ptr _out_node;
57     SGPropertyNode_ptr _override_node;
58    
59 };
60
61 #endif // __INSTRUMENTS_SLIP_SKID_BALL_HXX