FlightGear next
AttitudeIndicatorElectric Class Reference

Model an electrically-powered attitude indicator. More...

#include <attitude_indicator_electric.hxx>

Inherits AbstractInstrument.

Public Member Functions

 AttitudeIndicatorElectric (SGPropertyNode *node)
 
virtual ~AttitudeIndicatorElectric ()
 
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 attitude indicator.

Config: 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)

Input properties:

/instrumentation/"name"/config/tumble-flag /instrumentation/"name"/serviceable /instrumentation/"name"/caged-flag /instrumentation/"name"/tumble-norm /orientation/pitch-deg /orientation/roll-deg /systems/electrical/outputs/attitude-indicator-electric

Output properties:

/instrumentation/"name"/indicated-pitch-deg /instrumentation/"name"/indicated-roll-deg /instrumentation/"name"/tumble-norm /instrumentation/"name"/off-flag

Definition at line 47 of file attitude_indicator_electric.hxx.

Constructor & Destructor Documentation

◆ AttitudeIndicatorElectric()

AttitudeIndicatorElectric::AttitudeIndicatorElectric ( SGPropertyNode * node)

Definition at line 27 of file attitude_indicator_electric.cxx.

◆ ~AttitudeIndicatorElectric()

AttitudeIndicatorElectric::~AttitudeIndicatorElectric ( )
virtual

Definition at line 40 of file attitude_indicator_electric.cxx.

Member Function Documentation

◆ init()

void AttitudeIndicatorElectric::init ( )
override

Definition at line 45 of file attitude_indicator_electric.cxx.

◆ reinit()

void AttitudeIndicatorElectric::reinit ( )
override

Definition at line 85 of file attitude_indicator_electric.cxx.

◆ staticSubsystemClassId()

static const char * AttitudeIndicatorElectric::staticSubsystemClassId ( )
inlinestatic

Definition at line 59 of file attitude_indicator_electric.hxx.

◆ update()

void AttitudeIndicatorElectric::update ( double dt)
override

Definition at line 93 of file attitude_indicator_electric.cxx.


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