FlightGear next
HeadingIndicatorFG Class Reference

Model an electrically-powered fluxgate compass. More...

#include <heading_indicator_fg.hxx>

Inherits AbstractInstrument.

Public Member Functions

 HeadingIndicatorFG (SGPropertyNode *node)
 
 HeadingIndicatorFG ()
 
virtual ~HeadingIndicatorFG ()
 
void init () override
 
void reinit () override
 
void update (double dt) override
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractInstrument
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
 

Detailed Description

Model an electrically-powered fluxgate compass.

Input properties:

/instrumentation/"name"/serviceable /instrumentation/"name"/spin /instrumentation/"name"/offset-deg /orientation/heading-deg /systems/electrical/outputs/"name"["number"]

Output properties:

/instrumentation/"name"/indicated-heading-deg

Definition at line 38 of file heading_indicator_fg.hxx.

Constructor & Destructor Documentation

◆ HeadingIndicatorFG() [1/2]

HeadingIndicatorFG::HeadingIndicatorFG ( SGPropertyNode * node)

Definition at line 26 of file heading_indicator_fg.cxx.

◆ HeadingIndicatorFG() [2/2]

HeadingIndicatorFG::HeadingIndicatorFG ( )

Definition at line 33 of file heading_indicator_fg.cxx.

◆ ~HeadingIndicatorFG()

HeadingIndicatorFG::~HeadingIndicatorFG ( )
virtual

Definition at line 37 of file heading_indicator_fg.cxx.

Member Function Documentation

◆ init()

void HeadingIndicatorFG::init ( )
override

Definition at line 42 of file heading_indicator_fg.cxx.

◆ reinit()

void HeadingIndicatorFG::reinit ( )
override

Definition at line 65 of file heading_indicator_fg.cxx.

◆ staticSubsystemClassId()

static const char * HeadingIndicatorFG::staticSubsystemClassId ( )
inlinestatic

Definition at line 53 of file heading_indicator_fg.hxx.

◆ update()

void HeadingIndicatorFG::update ( double dt)
override

Definition at line 73 of file heading_indicator_fg.cxx.


The documentation for this class was generated from the following files: