FlightGear next
|
Model. More...
#include <turn_indicator.hxx>
Inherits AbstractInstrument.
Public Member Functions | |
TurnIndicator (SGPropertyNode *node) | |
virtual | ~TurnIndicator () |
void | init () override |
void | reinit () override |
void | update (double dt) override |
Static Public Member Functions | |
static const char * | staticSubsystemClassId () |
Additional Inherited Members | |
![]() | |
void | readConfig (SGPropertyNode *config, std::string defaultName) |
void | initServicePowerProperties (SGPropertyNode *node) |
bool | isServiceableAndPowered () const |
std::string | nodePath () const |
std::string | name () const |
int | number () const |
void | unbind () override |
void | setMinimumSupplyVolts (double v) |
void | setDefaultPowerSupplyPath (const std::string &p) |
specify the default path to use to power the instrument, if it's non- standard. | |
virtual bool | isPowerSwitchOn () const |
Model.
This class does not model the slip/skid ball; that is properly a separate instrument.
Input properties:
/instrumentation/"name"/serviceable /instrumentation/"name"/spin /orientation/roll-rate-degps /orientation/yaw-rate-degps /systems/electrical/outputs/turn-coordinator (see below)
Output properties:
/instrumentation/"name"/indicated-turn-rate
Configuration:
name number new-default-power-path: use /systems/electrical/outputs/turn-indicator[ number ] instead of /systems/electrical/outputs/turn-coordinator as the default power supply path (not used when power-supply is set) power-supply minimum-supply-volts gyro-spin-up-sec If given, seconds to spin up until power-norm (from 0->100%) gyro-spin-down-sec If given, seconds the gyro will loose spin without power (from 100%->0)
Notes on the power supply path:
For backwards compatibility reasons, the default power path is /systems/electrical/outputs/turn-coordinator, unless new-default-power-path is set to 1, in which case the new default path /systems/electrical/outputs/turn-indicator[ number ] is used. As the new path is more logical and consistent with instrument naming, newly developed and actively maintained aircraft should switch their electrical system to write to /systems/electrical/outputs/turn-indicator[ number ] and set new-default-power-path. The legacy default path will eventually be phased out. The power path can always be set manually by using the power-supply config tag.
Definition at line 58 of file turn_indicator.hxx.
TurnIndicator::TurnIndicator | ( | SGPropertyNode * | node | ) |
Definition at line 28 of file turn_indicator.cxx.
|
virtual |
Definition at line 42 of file turn_indicator.cxx.
|
override |
Definition at line 47 of file turn_indicator.cxx.
|
override |
Definition at line 70 of file turn_indicator.cxx.
|
inlinestatic |
Definition at line 70 of file turn_indicator.hxx.
|
override |
Definition at line 77 of file turn_indicator.cxx.