Pi-XPlane-FMC-CDU
|
Public Member Functions | |
virtual std::string | getName () |
returns name of FMC plugin. More... | |
virtual void | init () |
virtual void | deInit () |
de-initialize the fmc. More... | |
virtual void | receiveData (time_t time, std::string type, std::string dataref, std::string value) |
virtual void | keyPressEvent (int row, int col) |
virtual void | keyReleaseEvent (int row, int col) |
virtual void | drawCenteredText (int line, std::string text) |
void | refreshDisplay () |
void | XPlaneBeaconListenerHandler (XPlaneBeaconListener::XPlaneServer server, bool exists) |
void | onExtPlaneDisconnect () |
void | onDetectFMC (std::string fmc, bool present) |
add to the list of discovered FMCs. More... | |
![]() | |
virtual void | subscribeDataRefs () |
subscribe to datarefs More... | |
virtual void | receiveDataRef (std::string type, std::string dataref, std::string value) |
called when we receive a float dataref from the server. More... | |
Protected Attributes | |
int | numCols |
int | page |
std::vector< XPlaneBeaconListener::XPlaneServer > | servers |
int | nowServer |
int | nowFMC |
std::vector< std::string > | detectedFMCs |
|
virtual |
de-initialize the fmc.
This gets called whenever an FMC is to be removed from the "current" screen. Triggered from setCurrentFMC().
Implements AbstractFMC.
|
inlinevirtual |
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.
void MainFMC::onDetectFMC | ( | std::string | fmc, |
bool | present | ||
) |
add to the list of discovered FMCs.
This is called by FMC Manager.