FlightGear next
ADF Class Reference

Model an ADF radio. More...

#include <adf.hxx>

Inherits AbstractInstrument.

Public Member Functions

 ADF (SGPropertyNode *node)
 
virtual ~ADF ()
 
void init () override
 
void update (double delta_time_sec) 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 ADF radio.

Input properties:

/position/longitude-deg /position/latitude-deg /position/altitude-ft /orientation/heading-deg /systems/electrical/outputs/adf /instrumentation/adf/serviceable /instrumentation/adf/error-deg /instrumentation/adf/frequencies/selected-khz /instrumentation/adf/mode /instrumentation/adf/ident-audible /instrumentation/adf/volume-norm

Output properties:

/instrumentation/adf/in-range /instrumentation/adf/indicated-bearing-deg /instrumentation/adf/ident

Definition at line 43 of file adf.hxx.

Constructor & Destructor Documentation

◆ ADF()

ADF::ADF ( SGPropertyNode * node)

Definition at line 63 of file adf.cxx.

◆ ~ADF()

ADF::~ADF ( )
virtual

Definition at line 79 of file adf.cxx.

Member Function Documentation

◆ init()

void ADF::init ( )
override

Definition at line 84 of file adf.cxx.

◆ staticSubsystemClassId()

static const char * ADF::staticSubsystemClassId ( )
inlinestatic

Definition at line 54 of file adf.hxx.

◆ update()

void ADF::update ( double delta_time_sec)
override

Definition at line 118 of file adf.cxx.


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