Pi-XPlane-FMC-CDU
Public Member Functions | Protected Attributes | List of all members
ZiboFMC Class Reference
Inheritance diagram for ZiboFMC:
AbstractFMC

Public Member Functions

 ZiboFMC (bool isCaptain)
 
virtual std::string getName ()
 returns name of FMC plugin. More...
 
virtual void init ()
 
virtual void deInit ()
 de-initialize the fmc. More...
 
virtual void subscribeDataRefs ()
 subscribe to datarefs More...
 
virtual void subscribe (std::string dataref)
 
virtual void unsubscribe (std::string dataref)
 
virtual void keyPressEvent (int, int)
 
virtual void keyReleaseEvent (int, int)
 
virtual void receiveDataRef (std::string, std::string dataref, std::string value)
 called when we receive a float dataref from the server. More...
 

Protected Attributes

std::string side
 
std::map< int, std::map< int, std::string > > keyInfo
 

Member Function Documentation

§ deInit()

void ZiboFMC::deInit ( )
virtual

de-initialize the fmc.

This gets called whenever an FMC is to be removed from the "current" screen. Triggered from setCurrentFMC().

Implements AbstractFMC.

§ getName()

std::string ZiboFMC::getName ( )
virtual

returns name of FMC plugin.

For "actual" FMCs, the name should be 4 characters, as it needs to fit on the RSKs on the Select screen. This name is also used as the index into FMCManager's actualFMCs map, to get to the actual FMC instances.

Implements AbstractFMC.

§ receiveDataRef()

void ZiboFMC::receiveDataRef ( std::string  type,
std::string  dataref,
std::string  value 
)
virtual

called when we receive a float dataref from the server.

Reimplemented from AbstractFMC.

§ subscribeDataRefs()

void ZiboFMC::subscribeDataRefs ( )
virtual

subscribe to datarefs

all actual FMCs should subscribe to their datarefs here. It should be called from the actual FMC's init(), but may also be called from the FMCManager's onExtPlaneConnect() if the connection is dropped and reestablished.

Reimplemented from AbstractFMC.


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