FlightGear next
|
Model an electrically- or vacuum powered heading indicator. More...
#include <heading_indicator_dg.hxx>
Inherits AbstractInstrument.
Public Member Functions | |
HeadingIndicatorDG (SGPropertyNode *node) | |
HeadingIndicatorDG () | |
virtual | ~HeadingIndicatorDG () |
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 an electrically- or vacuum powered heading indicator.
Input properties:
/instrumentation/"name"/serviceable /instrumentation/"name"/spin /instrumentation/"name"/offset-deg /orientation/heading-deg /position/latitude-deg /velocities/east-relground-fps /systems/electrical/outputs/DG /systems/vacuum/suction-inhg (optionally)
Output properties:
/instrumentation/"name"/indicated-heading-deg /instrumentation/"name"/drift-per-hour-deg /instrumentation/"name"/transport-wander-per-hour-deg
Configuration:
name number new-default-power-path: use /systems/electrical/outputs/"name"[ number ] instead of /systems/electrical/outputs/DG as the default power supply path (not used when power-supply is set) heading-source If given, heading is taken from this node (default: "/orientation/heading-deg") power-supply minimum-supply-volts suction If given, gyro is vacuum driven from the property given 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)
These are optional and also configurable at runtime below instruments limits subtree: minimum-vacuum Default 5.0 inHG gyro/minimum-spin-norm Default 0.9 (0.0 to 1.0) limits/yaw-rate-source Default: "/orientation/yaw-rate-degps" limits/yaw-error-factor Default 0.033 (set to 0 to disable yaw-error influence) limits/yaw-limit-rate Default 5.0 limits/g-node Path to g-node; default "/accelerations/pilot-g" limits/g-filter-time Default 10.0 (set to 0 to disable); time for g low-pass filter (to filter out spikes due to caluclation artifacts) limits/g-error-factor Default 0.033 (set to 0 to disable g-error influence) limits/g-limit-lower Default -0.5 limits/g-limit-upper Default 1.5 limits/g-limit-tumble-factor Default 1.5 (150% above specified g-limits in g-limit-lower/g-limit-upper)
These are just for changing at runtime: latitude-nut-setting Default 0° latitude (equator; negative=southern hemisphere), to be set by aircraft code
Definition at line 68 of file heading_indicator_dg.hxx.
HeadingIndicatorDG::HeadingIndicatorDG | ( | SGPropertyNode * | node | ) |
Definition at line 26 of file heading_indicator_dg.cxx.
HeadingIndicatorDG::HeadingIndicatorDG | ( | ) |
|
virtual |
Definition at line 64 of file heading_indicator_dg.cxx.
|
override |
Definition at line 69 of file heading_indicator_dg.cxx.
|
override |
Definition at line 117 of file heading_indicator_dg.cxx.
|
inlinestatic |
Definition at line 81 of file heading_indicator_dg.hxx.
|
override |
Definition at line 152 of file heading_indicator_dg.cxx.