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>
16 #include <Main/fgfs.hxx>
22 * Model an electric-powered turn indicator.
24 * This class does not model the slip/skid ball; that is properly
25 * a separate instrument.
29 * /instrumentation/turn-indicator/serviceable
30 * /instrumentation/turn-indicator/spin
31 * /orientation/roll-rate-degps
32 * /orientation/yaw-rate-degps
33 * /systems/electrical/outputs/turn-coordinator
37 * /instrumentation/turn-indicator/indicated-turn-rate
39 class TurnIndicator : public FGSubsystem
45 virtual ~TurnIndicator ();
49 virtual void unbind ();
50 virtual void update (double dt);
57 SGPropertyNode_ptr _roll_rate_node;
58 SGPropertyNode_ptr _yaw_rate_node;
59 SGPropertyNode_ptr _electric_current_node;
60 SGPropertyNode_ptr _rate_out_node;
64 #endif // __INSTRUMENTS_TURN_INDICATOR_HXX