6#include <QLatin1String>
13#define XSWIFTBUS_SERVICE_SERVICENAME "org.swift-project.xswiftbus"
15namespace swift::simplugin::xplane
26 QString(),
"/xswiftbus/service",
"org.swift_project.xswiftbus.service",
"aircraftModelChanged",
this,
30 s = connection.
connect(
QString(),
"/xswiftbus/service",
"org.swift_project.xswiftbus.service",
70 watcher->deleteLater();
72 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftSituationData"), callback);
98 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftVelocityData"), callback);
122 watcher->deleteLater();
124 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftCom1Data"), callback);
148 watcher->deleteLater();
150 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftCom2Data"), callback);
172 watcher->deleteLater();
174 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftXpdr"), callback);
198 watcher->deleteLater();
200 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftLights"), callback);
223 watcher->deleteLater();
225 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftParts"), callback);
246 watcher->deleteLater();
248 m_dbusInterface->callDBusAsync(
QLatin1String(
"getOwnAircraftModelData"), callback);
253 m_dbusInterface->callDBus(
QLatin1String(
"addTextMessage"), text, red, green, blue);
262 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftModelPath"), setterCallback(o_modelPath));
271 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftModelFilename"), setterCallback(o_modelFilename));
280 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftLivery"), setterCallback(o_modelLivery));
289 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftIcaoCode"), setterCallback(o_icaoCode));
298 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftDescription"), setterCallback(o_description));
307 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftModelString"), setterCallback(o_modelString));
316 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAircraftName"), setterCallback(o_name));
321 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getXPlaneVersionMajor"));
325 m_dbusInterface->callDBusAsync(
QLatin1String(
"getXPlaneVersionMajor"), setterCallback(o_versionMajor));
330 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getXPlaneVersionMinor"));
334 m_dbusInterface->callDBusAsync(
QLatin1String(
"getXPlaneVersionMinor"), setterCallback(o_versionMinor));
343 m_dbusInterface->callDBusAsync(
QLatin1String(
"getXPlaneInstallationPath"), setterCallback(o_installPath));
352 m_dbusInterface->callDBusAsync(
QLatin1String(
"getXPlanePreferencesPath"), setterCallback(o_prefsPath));
357 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"isPaused"));
361 m_dbusInterface->callDBusAsync(
QLatin1String(
"isPaused"), setterCallback(o_paused));
366 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"isUsingRealTime"));
370 m_dbusInterface->callDBusAsync(
QLatin1String(
"isUsingRealTime"), setterCallback(o_isRealTime));
374 double *o_minutesLate)
const
385 watcher->deleteLater();
387 m_dbusInterface->callDBusAsync(
QLatin1String(
"getFrameStats"), callback)->waitForFinished();
391 double *o_trackMilesShort,
double *o_minutesLate)
402 watcher->deleteLater();
404 m_dbusInterface->callDBusAsync(
QLatin1String(
"getFrameStats"), callback);
411 m_dbusInterface->callDBus(
QLatin1String(
"setFlightNetworkConnected"), connected);
416 m_dbusInterface->callDBus(
QLatin1String(
"setOwnCallsign"), callsign);
421 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getLatitudeDeg"));
425 m_dbusInterface->callDBusAsync(
QLatin1String(
"getLatitudeDeg"), setterCallback(o_latitude));
430 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getLongitudeDeg"));
434 m_dbusInterface->callDBusAsync(
QLatin1String(
"getLongitudeDeg"), setterCallback(o_longitude));
439 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getAltitudeMslM"));
443 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAltitudeMslM"), setterCallback(o_altitude));
448 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getPressureAltitudeFt"));
452 m_dbusInterface->callDBusAsync(
QLatin1String(
"getPressureAltitudeFt"), setterCallback(o_altitude));
457 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getHeightAglM"));
461 m_dbusInterface->callDBusAsync(
QLatin1String(
"getHeightAglM"), setterCallback(o_height));
466 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getGroundSpeedMps"));
470 m_dbusInterface->callDBusAsync(
QLatin1String(
"getGroundSpeedMps"), setterCallback(o_groundspeed));
475 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getIndicatedAirspeedKias"));
479 m_dbusInterface->callDBusAsync(
QLatin1String(
"getIndicatedAirspeedKias"), setterCallback(o_ias));
484 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getTrueAirspeedKias"));
488 m_dbusInterface->callDBusAsync(
QLatin1String(
"getTrueAirspeedKias"), setterCallback(o_tas));
493 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getPitchDeg"));
497 m_dbusInterface->callDBusAsync(
QLatin1String(
"getPitchDeg"), setterCallback(o_pitch));
502 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getRollDeg"));
506 m_dbusInterface->callDBusAsync(
QLatin1String(
"getRollDeg"), setterCallback(o_roll));
511 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getTrueHeadingDeg"));
515 m_dbusInterface->callDBusAsync(
QLatin1String(
"getTrueHeadingDeg"), setterCallback(o_heading));
520 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getLocalXVelocityMps"));
524 m_dbusInterface->callDBusAsync(
QLatin1String(
"getLocalXVelocityMps"), setterCallback(o_velocity));
529 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getLocalYVelocityMps"));
533 m_dbusInterface->callDBusAsync(
QLatin1String(
"getLocalYVelocityMps"), setterCallback(o_velocity));
538 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getLocalZVelocityMps"));
542 m_dbusInterface->callDBusAsync(
QLatin1String(
"getLocalZVelocityMps"), setterCallback(o_velocity));
547 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getPitchRadPerSec"));
551 m_dbusInterface->callDBusAsync(
QLatin1String(
"getPitchRadPerSec"), setterCallback(o_radPerSec));
556 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getRollRadPerSec"));
560 m_dbusInterface->callDBusAsync(
QLatin1String(
"getRollRadPerSec"), setterCallback(o_radPerSec));
565 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getHeadingRadPerSec"));
569 m_dbusInterface->callDBusAsync(
QLatin1String(
"getHeadingRadPerSec"), setterCallback(o_radPerSec));
574 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getAnyWheelOnGround"));
578 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAnyWheelOnGround"), setterCallback(o_anyWheel));
583 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getAllWheelsOnGround"));
587 m_dbusInterface->callDBusAsync(
QLatin1String(
"getAllWheelsOnGround"), setterCallback(o_allWheels));
592 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getGroundElevation"));
597 m_dbusInterface->callDBusAsync(
QLatin1String(
"getGroundElevation"), setterCallback(o_elevationM));
602 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getCom1ActiveKhz"));
606 m_dbusInterface->callDBusAsync(
QLatin1String(
"getCom1ActiveKhz"), setterCallback(o_com1Active));
611 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getCom1StandbyKhz"));
616 m_dbusInterface->callDBusAsync(
QLatin1String(
"getCom1StandbyKhz"), setterCallback(o_com1Standby));
621 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"isCom1Receiving"));
626 m_dbusInterface->callDBusAsync(
QLatin1String(
"isCom1Receiving"), setterCallback(o_com1Rec));
631 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"isCom1Transmitting"));
636 m_dbusInterface->callDBusAsync(
QLatin1String(
"isCom1Transmitting"), setterCallback(o_com1Tx));
641 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getCom1Volume"));
646 m_dbusInterface->callDBusAsync(
QLatin1String(
"getCom1Volume"), setterCallback(o_com1Volume));
651 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getCom2ActiveKhz"));
655 m_dbusInterface->callDBusAsync(
QLatin1String(
"getCom2ActiveKhz"), setterCallback(o_com2Active));
660 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getCom2StandbyKhz"));
664 m_dbusInterface->callDBusAsync(
QLatin1String(
"getCom2StandbyKhz"), setterCallback(o_com2Standby));
669 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"isCom2Receiving"));
674 m_dbusInterface->callDBusAsync(
QLatin1String(
"isCom2Receiving"), setterCallback(o_com2Rec));
679 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"isCom2Transmitting"));
684 m_dbusInterface->callDBusAsync(
QLatin1String(
"isCom2Transmitting"), setterCallback(o_com2Tx));
689 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getCom2Volume"));
694 m_dbusInterface->callDBusAsync(
QLatin1String(
"getCom2Volume"), setterCallback(o_com2Volume));
699 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getTransponderCode"));
703 m_dbusInterface->callDBusAsync(
QLatin1String(
"getTransponderCode"), setterCallback(o_xpdrCode));
708 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getTransponderMode"));
712 m_dbusInterface->callDBusAsync(
QLatin1String(
"getTransponderMode"), setterCallback(o_xpdrMode));
717 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getTransponderIdent"));
721 m_dbusInterface->callDBusAsync(
QLatin1String(
"getTransponderIdent"), setterCallback(o_ident));
726 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getBeaconLightsOn"));
731 m_dbusInterface->callDBusAsync(
QLatin1String(
"getBeaconLightsOn"), setterCallback(o_beaconLightsOn));
736 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getLandingLightsOn"));
741 m_dbusInterface->callDBusAsync(
QLatin1String(
"getLandingLightsOn"), setterCallback(o_landingLightsOn));
746 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getNavLightsOn"));
751 m_dbusInterface->callDBusAsync(
QLatin1String(
"getNavLightsOn"), setterCallback(o_navLightsOn));
757 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getStrobeLightsOn"));
762 m_dbusInterface->callDBusAsync(
QLatin1String(
"getStrobeLightsOn"), setterCallback(o_strobeLightsOn));
767 return m_dbusInterface->callDBusRet<
bool>(
QLatin1String(
"getTaxiLightsOn"));
772 m_dbusInterface->callDBusAsync(
QLatin1String(
"getTaxiLightsOn"), setterCallback(o_taxiLightsOn));
777 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getQNHInHg"));
782 m_dbusInterface->callDBusAsync(
QLatin1String(
"getQNHInHg"), setterCallback(o_qnh));
787 m_dbusInterface->callDBus(
QLatin1String(
"setCom1ActiveKhz"), freq);
792 m_dbusInterface->callDBus(
QLatin1String(
"setCom1StandbyKhz"), freq);
797 m_dbusInterface->callDBus(
QLatin1String(
"setCom2ActiveKhz"), freq);
802 m_dbusInterface->callDBus(
QLatin1String(
"setCom2StandbyKhz"), freq);
807 m_dbusInterface->callDBus(
QLatin1String(
"setTransponderCode"), code);
812 m_dbusInterface->callDBus(
QLatin1String(
"setTransponderMode"), mode);
816 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getFlapsDeployRatio"));
821 m_dbusInterface->callDBusAsync(
QLatin1String(
"getFlapsDeployRatio"), setterCallback(o_flapsDeployRatio));
826 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getGearDeployRatio"));
831 m_dbusInterface->callDBusAsync(
QLatin1String(
"getGearDeployRatio"), setterCallback(o_gearDeployRatio));
836 return m_dbusInterface->callDBusRet<
int>(
QLatin1String(
"getNumberOfEngines"));
841 m_dbusInterface->callDBusAsync(
QLatin1String(
"getNumberOfEngines"), setterCallback(o_numberOfEngines));
851 m_dbusInterface->callDBusAsync(
QLatin1String(
"getEngineN1Percentage"), setterCallback(o_engineN1Percentage));
856 return m_dbusInterface->callDBusRet<
double>(
QLatin1String(
"getSpeedBrakeRatio"));
861 m_dbusInterface->callDBusAsync(
QLatin1String(
"getSpeedBrakeRatio"), setterCallback(o_speedBrakeRatio));
871 m_dbusInterface->callDBusAsync(
QLatin1String(
"getSettingsJson"), setterCallback(o_jsonSettings));
876 m_dbusInterface->callDBus(
QLatin1String(
"setSettingsJson"), json);
Used for hand written interface based on virtual methods.
double getLocalXVelocityMps() const
Get aircraft local velocity in world coordinates meters per second.
QString getCommitHash()
Get SHA1 of the last commit that could influence xswiftbus.
bool getBeaconLightsOn() const
Get whether landing lights are on.
static const QString & InterfaceName()
Service name.
void isUsingRealTimeAsync(bool *o_isRealTime)
True if sim time is tracking operating system time.
void getOwnAircraftModelDataAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own model data.
void getOwnAircraftCom2DataAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own aircraft COM2 data.
void setTransponderMode(int mode)
Set the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby,...
void getAircraftLiveryAsync(QString *o_modelLivery)
Get current aircraft livery.
double getLocalYVelocityMps() const
Get aircraft local velocity in world coordinates meters per second.
void getTransponderModeAsync(int *o_xpdrMode)
Get the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby,...
void getAltitudeMslMAsync(double *o_altitude)
Get aircraft altitude in meters.
void getEngineN1PercentageAsync(QList< double > *o_engineN1Percentage)
Get the N1 speed as percent of max (per engine).
int getNumberOfEngines() const
Get the number of engines of current aircraft.
double getLatitudeDeg() const
Get aircraft latitude in degrees.
QString getAircraftModelFilename() const
Get base filename of current aircraft model.
QString getXPlaneInstallationPath() const
Get root of X-Plane install path.
void setOwnCallsign(const QString &callsign)
Set the current own callsign.
void getAircraftIcaoCodeAsync(QString *o_icaoCode)
Get the ICAO code of the current aircraft model.
bool getTaxiLightsOn() const
Get whether taxi lights are on.
void getAircraftModelPathAsync(QString *o_modelPath)
Get full path to current aircraft model.
void getAircraftModelFilenameAsync(QString *o_modelFilename)
Get base filename of current aircraft model.
void getPitchDegAsync(double *o_pitch)
Get aircraft pitch in degrees above horizon.
int getXPlaneVersionMajor() const
Get major version number.
static const QString & ObjectPath()
Service path.
void setCom2ActiveKhz(int freq)
Set the current COM2 active frequency in kHz.
QString getXPlanePreferencesPath() const
Get full path to X-Plane preferences file.
double getRollDeg() const
Get aircraft roll in degrees.
void getPitchRadPerSecAsync(double *o_radPerSec)
Get aircraft angular velocity in radians per second.
void getAllWheelsOnGroundAsync(bool *o_allWheels)
Get whether all wheels are on the ground.
double getCom2Volume() const
Get the COM2 volume 0..1.
double getGearDeployRatio() const
Get gear deploy ratio, where 0 is up and 1 is down.
QString getAircraftLivery() const
Get current aircraft livery.
void getBeaconLightsOnAsync(bool *o_beaconLightsOn)
Get whether landing lights are on.
void getLocalZVelocityMpsAsync(double *o_velocity)
Get aircraft local velocity in world coordinates meters per second.
double getLongitudeDeg() const
Get aircraft longitude in degrees.
void setTransponderCode(int code)
Set the current transponder code in decimal.
void getSpeedBrakeRatioAsync(double *o_speedBrakeRatio)
Get the ratio how much the speedbrakes surfaces are extended (0.0 is fully retracted,...
bool getLandingLightsOn() const
Get whether landing lights are on.
void getIndicatedAirspeedKiasAsync(double *o_ias)
Get aircraft IAS in knots.
void getTaxiLightsOnAsync(bool *o_taxiLightsOn)
Get whether taxi lights are on.
void addTextMessage(const QString &text, double red, double green, double blue)
Add a text message to the on-screen display, with RGB components in the range [0,1].
void getGroundElevationAsync(double *o_elevationM)
Get elevation of ground under the plane (in meters).
void sceneryLoaded()
Scenery was loaded.
void getRollRadPerSecAsync(double *o_radPerSec)
Get aircraft angular velocity in radians per second.
void setCom1StandbyKhz(int freq)
Set the current COM1 standby frequency in kHz.
bool isCom1Receiving() const
Is COM1 receiving?
void isCom1ReceivingAsync(bool *o_com1Rec)
Is COM1 receiving?
double getTrueAirspeedKias() const
Get aircraft TAS in meters per second.
void getOwnAircraftLightsAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own lights data.
void getCom1StandbyKhzAsync(int *o_com1Standby)
Get the current COM1 standby frequency in kHz.
void getOwnAircraftVelocityDataAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own aircraft velocity data.
void getAnyWheelOnGroundAsync(bool *o_anyWheel)
Get whether any wheel is on the ground.
void setCom1ActiveKhz(int freq)
Set the current COM1 active frequency in kHz.
void getOwnAircraftXpdrAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own XPDR data.
void getLandingLightsOnAsync(bool *o_landingLightsOn)
Get whether landing lights are on.
int getCom1StandbyKhz() const
Get the current COM1 standby frequency in kHz.
QString getAircraftDescription() const
Get the description of the current aircraft model.
void getXPlaneVersionMinorAsync(int *o_versionMinor)
Get minor version number.
void getStrobeLightsOnAsync(bool *o_strobeLightsOn)
Get whether strobe lights are on.
QString getAircraftName() const
Get name of current aircraft model.
void setFlightNetworkConnected(bool connected)
Set the current connection state.
bool getTransponderIdent() const
Get whether we are currently squawking ident.
void isPausedAsync(bool *o_paused)
True if sim is paused.
double getPitchDeg() const
Get aircraft pitch in degrees above horizon.
void isCom2TransmittingAsync(bool *o_com2Tx)
Is COM2 transmitting?
void getGroundSpeedMpsAsync(double *o_groundspeed)
Get aircraft groundspeed in meters per second.
double getCom1Volume() const
Get the COM1 volume 0..1.
int getTransponderMode() const
Get the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby,...
void getTrueAirspeedKiasAsync(double *o_tas)
Get aircraft TAS in meters per second.
QString getSettingsJson() const
Get settings.
bool isPaused() const
True if sim is paused.
void getCom2VolumeAsync(double *o_com2Volume)
Get the COM2 volume 0..1.
bool isUsingRealTime() const
True if sim time is tracking operating system time.
int getCom2ActiveKhz() const
Get the current COM2 active frequency in kHz.
int getCom2StandbyKhz() const
Get the current COM2 standby frequency in kHz.
void isCom2ReceivingAsync(bool *o_com2Rec)
Is COM2 receiving?
void setSettingsJson(const QString &json)
Set settings.
void getCom2StandbyKhzAsync(int *o_com2Standby)
Get the current COM2 standby frequency in kHz.
QString getAircraftModelString() const
Get canonical swift model string of current aircraft model.
bool getStrobeLightsOn() const
Get whether strobe lights are on.
QString getAircraftIcaoCode() const
Get the ICAO code of the current aircraft model.
void getFlapsDeployRatioAsync(double *o_flapsDeployRatio)
Get flaps deploy ratio, where 0.0 is flaps fully retracted, and 1.0 is flaps fully extended.
void getGearDeployRatioAsync(double *o_gearDeployRatio)
Get gear deploy ratio, where 0 is up and 1 is down.
QString getAircraftModelPath() const
Get full path to current aircraft model.
QList< double > getEngineN1Percentage() const
Get the N1 speed as percent of max (per engine).
double getIndicatedAirspeedKias() const
Get aircraft IAS in knots.
void getXPlaneVersionMajorAsync(int *o_versionMajor)
Get major version number.
bool getNavLightsOn() const
Get whether nav lights are on.
void getLocalXVelocityMpsAsync(double *o_velocity)
Get aircraft local velocity in world coordinates meters per second.
double getRollRadPerSec() const
Get aircraft angular velocity in radians per second.
double getGroundElevation() const
Get elevation of ground under the plane (in meters).
double getFlapsDeployRatio() const
Get flaps deploy ratio, where 0.0 is flaps fully retracted, and 1.0 is flaps fully extended.
void getPressureAltitudeFtAsync(double *o_altitude)
Get aircraft pressure altitude in feet in standard atmosphere in X-Plane 12. NaN in earlier versions ...
void getTransponderCodeAsync(int *o_xpdrCode)
Get the current transponder code in decimal.
int getCom1ActiveKhz() const
Get the current COM1 active frequency in kHz.
int getTransponderCode() const
Get the current transponder code in decimal.
CXSwiftBusServiceProxy(QDBusConnection &connection, QObject *parent=nullptr, bool dummy=false)
Constructor.
void getAircraftModelStringAsync(QString *o_modelString)
Get canonical swift model string of current aircraft model.
void getFrameStats(double *o_averageFps, double *o_simTimeRatio, double *o_trackMilesShort, double *o_minutesLate) const
Frames-per-second, averaged over the last 500 frames, or since this function was last called,...
void getRollDegAsync(double *o_roll)
Get aircraft roll in degrees.
bool getAnyWheelOnGround() const
Get whether any wheel is on the ground.
void getOwnAircraftPartsAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own parts such as gear, flaps.
void getSettingsJsonAsync(QString *o_jsonSettings)
Get settings.
bool isCom2Receiving() const
Is COM2 receiving?
double getPressureAltitudeFt() const
Get aircraft pressure altitude in feet in standard atmosphere in X-Plane 12. NaN in earlier versions ...
void getCom2ActiveKhzAsync(int *o_com2Active)
Get the current COM2 active frequency in kHz.
void isCom1TransmittingAsync(bool *o_com1Tx)
Is COM1 transmitting?
double getTrueHeadingDeg() const
Get aircraft true heading in degrees.
void getNavLightsOnAsync(bool *o_navLightsOn)
Get whether nav lights are on.
bool isCom1Transmitting() const
Is COM1 transmitting?
void getHeightAglMAsync(double *o_height)
Get aircraft height in meters.
void aircraftModelChanged(const QString &path, const QString &filename, const QString &livery, const QString &icao, const QString &modelString, const QString &name, const QString &description)
Own aircraft model changed.
void getQNHInHgAsync(double *o_qnh)
Get barometric pressure at sea level in inches of mercury.
void getAircraftNameAsync(QString *o_name)
Get name of current aircraft model.
double getLocalZVelocityMps() const
Get aircraft local velocity in world coordinates meters per second.
void getLatitudeDegAsync(double *o_latitude)
Get aircraft latitude in degrees.
void getAircraftDescriptionAsync(QString *o_description)
Get the description of the current aircraft model.
void getCom1VolumeAsync(double *o_com1Volume)
Get the COM1 volume 0..1.
double getQNHInHg() const
Get barometric pressure at sea level in inches of mercury.
void getOwnAircraftSituationDataAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own aircraft situation data.
void getNumberOfEnginesAsync(double *o_numberOfEngines)
Get the number of engines of current aircraft.
double getGroundSpeedMps() const
Get aircraft groundspeed in meters per second.
void setCom2StandbyKhz(int freq)
Set the current COM2 standby frequency in kHz.
void getXPlaneInstallationPathAsync(QString *o_installPath)
Get root of X-Plane install path.
void resetFrameTotals()
Reset the monitoring of total miles and minutes lost due to low frame rate.
double getSpeedBrakeRatio() const
Get the ratio how much the speedbrakes surfaces are extended (0.0 is fully retracted,...
double getHeightAglM() const
Get aircraft height in meters.
void getLongitudeDegAsync(double *o_longitude)
Get aircraft longitude in degrees.
void getCom1ActiveKhzAsync(int *o_com1Active)
Get the current COM1 active frequency in kHz.
double getAltitudeMslM() const
Get aircraft altitude in meters.
int getXPlaneVersionMinor() const
Get minor version number.
bool getAllWheelsOnGround() const
Get whether all wheels are on the ground.
double getPitchRadPerSec() const
Get aircraft angular velocity in radians per second.
QString getVersionNumber()
Get xswiftbus version number.
void getOwnAircraftCom1DataAsync(swift::simplugin::xplane::XPlaneData *o_xplaneData)
Get own aircraft COM1 data.
void getLocalYVelocityMpsAsync(double *o_velocity)
Get aircraft local velocity in world coordinates meters per second.
double getHeadingRadPerSec() const
Get aircraft angular velocity in radians per second.
bool isCom2Transmitting() const
Is COM2 transmitting?
void getXPlanePreferencesPathAsync(QString *o_prefsPath)
Get full path to X-Plane preferences file.
void getHeadingRadPerSecAsync(double *o_radPerSec)
Get aircraft angular velocity in radians per second.
void getTrueHeadingDegAsync(double *o_heading)
Get aircraft true heading in degrees.
void getFrameStatsAsync(double *o_averageFps, double *o_simTimeRatio, double *o_trackMilesShort, double *o_minutesLate)
Frames-per-second, averaged over the last 500 frames, or since this function was last called,...
void getTransponderIdentAsync(bool *o_ident)
Get whether we are currently squawking ident.
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
QVariant argumentAt(int index) const const
bool isError() const const
QObject * parent() const const
double rollDeg
Roll [deg].
int com2StandbyKhz
COM2 standby [kHz].
double headingRadPerSec
Heading angular velocity [rad/s].
double groundspeedMs
Ground speed [m/s].
bool isCom1Receiving
COM1 receiving.
double com2Volume
COM2 volume 0..1.
double com1Volume
COM1 volume 0..1.
double longitudeDeg
Latitude [deg].
double localXVelocityMs
Local x velocity [m/s].
int xpdrMode
Transponder mode (off=0,stdby=1,on=2,test=3).
int com1ActiveKhz
COM1 active [kHz].
bool beaconLightsOn
Beacon lights on?
bool isCom1Transmitting
COM1 transmittings.
QString aircraftModelPath
Aircraft model path.
double flapsDeployRatio
Flaps deployment ratio [%].
double localZVelocityMs
Local z velocity [m/s].
bool taxiLightsOn
Taxi lights on?
bool isCom2Transmitting
COM2 transmittings.
bool strobeLightsOn
Strobe lights on?
double rollRadPerSec
Roll angular velocity [rad/s].
int xpdrCode
Transpondder code.
double gearDeployRatio
Gear deployment ratio [%].
double trueHeadingDeg
True heading [deg].
bool xpdrIdent
Is transponder in ident?
int com2ActiveKhz
COM2 active [kHz].
double altitudeM
Altitude [m].
QString aircraftIcaoCode
Aircraft ICAO code.
double latitudeDeg
Longitude [deg].
bool isCom2Receiving
COM2 receiving.
bool navLightsOn
NAV lights on?
double pitchRadPerSec
Pitch angular velocity [rad/s].
QList< double > enginesN1Percentage
N1 per engine [%].
double pitchDeg
Pitch [deg].
double speedBrakeRatio
Speed break ratio [%].
double seaLevelPressureInHg
Sea level pressure [inhg].
int com1StandbyKhz
COM1 standby [kHz].
bool landingLightsOn
Landing lights on?
double localYVelocityMs
Local y velocity [m/s].