]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/slip_skid_ball.hxx
994eb5f8bc79e0732da706a29940543f61a45502
[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/misc/props.hxx>
15 #include <Main/fgfs.hxx>
16
17 #include "gyro.hxx"
18
19
20 /**
21  * Model a slip-skid ball.
22  *
23  * Input properties:
24  *
25  * /accelerations/pilot/y-accel-fps_sec
26  * /accelerations/pilot/z-accel-fps_sec
27  *
28  * Output properties:
29  *
30  * /instrumentation/slip-skid-ball/indicated-slip-skid
31  */
32 class SlipSkidBall : public FGSubsystem
33 {
34
35 public:
36
37     SlipSkidBall ();
38     virtual ~SlipSkidBall ();
39
40     virtual void init ();
41     virtual void update (double dt);
42
43 private:
44
45     Gyro _gyro;
46     double _last_pos;
47
48     SGPropertyNode_ptr _y_accel_node;
49     SGPropertyNode_ptr _z_accel_node;
50     SGPropertyNode_ptr _out_node;
51     
52 };
53
54 #endif // __INSTRUMENTS_SLIP_SKID_BALL_HXX