]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/slip_skid_ball.hxx
Moved some of the low level scene graph construction code over to simgear.
[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
16 #include <Main/fgfs.hxx>
17
18 #include "gyro.hxx"
19
20
21 /**
22  * Model a slip-skid ball.
23  *
24  * Input properties:
25  *
26  * /instrumentation/slip-skid-ball/serviceable
27  * /accelerations/pilot/y-accel-fps_sec
28  * /accelerations/pilot/z-accel-fps_sec
29  *
30  * Output properties:
31  *
32  * /instrumentation/slip-skid-ball/indicated-slip-skid
33  */
34 class SlipSkidBall : public FGSubsystem
35 {
36
37 public:
38
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     SGPropertyNode_ptr _serviceable_node;
51     SGPropertyNode_ptr _y_accel_node;
52     SGPropertyNode_ptr _z_accel_node;
53     SGPropertyNode_ptr _out_node;
54     
55 };
56
57 #endif // __INSTRUMENTS_SLIP_SKID_BALL_HXX