mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
[xswiftbus] Added FPS monitoring
This commit is contained in:
@@ -319,6 +319,15 @@ namespace BlackSimPlugin
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("isUsingRealTime"), setterCallback(o_isRealTime));
|
||||
}
|
||||
|
||||
double CXSwiftBusServiceProxy::getAverageFPS() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<double>(QLatin1String("getAverageFPS"));
|
||||
}
|
||||
void CXSwiftBusServiceProxy::getAverageFPSAsync(double *o_frameRate)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getAverageFPS"), setterCallback(o_frameRate));
|
||||
}
|
||||
|
||||
double CXSwiftBusServiceProxy::getLatitudeDeg() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<double>(QLatin1String("getLatitudeDeg"));
|
||||
|
||||
@@ -208,6 +208,12 @@ namespace BlackSimPlugin
|
||||
void isUsingRealTimeAsync(bool *o_isRealTime);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getAverageFPS
|
||||
//! @{
|
||||
double getAverageFPS() const;
|
||||
void getAverageFPSAsync(double *o_frameRate);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getLatitudeDeg
|
||||
//! @{
|
||||
double getLatitudeDeg() const;
|
||||
|
||||
Reference in New Issue
Block a user