1 // turn_indicator.hxx - an electric-powered turn indicator.
2 // Written by David Megginson, started 2003.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __INSTRUMENTS_TURN_INDICATOR_HXX
8 #define __INSTRUMENTS_TURN_INDICATOR_HXX 1
11 # error This library requires C++
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
21 * Model an electric-powered turn indicator.
23 * This class does not model the slip/skid ball; that is properly
24 * a separate instrument.
28 * /instrumentation/"name"/serviceable
29 * /instrumentation/"name"/spin
30 * /orientation/roll-rate-degps
31 * /orientation/yaw-rate-degps
32 * /systems/electrical/outputs/turn-coordinator
36 * /instrumentation/"name"/indicated-turn-rate
38 class TurnIndicator : public SGSubsystem
43 TurnIndicator ( SGPropertyNode *node );
45 virtual ~TurnIndicator ();
49 virtual void unbind ();
50 virtual void update (double dt);
60 SGPropertyNode_ptr _roll_rate_node;
61 SGPropertyNode_ptr _yaw_rate_node;
62 SGPropertyNode_ptr _electric_current_node;
63 SGPropertyNode_ptr _rate_out_node;
67 #endif // __INSTRUMENTS_TURN_INDICATOR_HXX