]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/slip_skid_ball.hxx
Multiplayer client/server system -- MessageBuf class and test harness complete
[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/slip-skid-ball/serviceable
26  * /accelerations/pilot/y-accel-fps_sec
27  * /accelerations/pilot/z-accel-fps_sec
28  *
29  * Output properties:
30  *
31  * /instrumentation/slip-skid-ball/indicated-slip-skid
32  */
33 class SlipSkidBall : public SGSubsystem
34 {
35
36 public:
37
38     SlipSkidBall ();
39     virtual ~SlipSkidBall ();
40
41     virtual void init ();
42     virtual void update (double dt);
43
44 private:
45
46     Gyro _gyro;
47     double _last_pos;
48
49     SGPropertyNode_ptr _serviceable_node;
50     SGPropertyNode_ptr _y_accel_node;
51     SGPropertyNode_ptr _z_accel_node;
52     SGPropertyNode_ptr _out_node;
53     
54 };
55
56 #endif // __INSTRUMENTS_SLIP_SKID_BALL_HXX