mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Use double in xbus DBus API instead of float
float is not supported by DBus and all slots fail to be registered if they have float arguments.
This commit is contained in:
@@ -32,7 +32,7 @@ namespace BlackSimPlugin
|
||||
m_dbusInterface->callDBus(QLatin1String("setUseRealWeather"), enable);
|
||||
}
|
||||
|
||||
void CXBusWeatherProxy::setVisibility(float visibilityM)
|
||||
void CXBusWeatherProxy::setVisibility(double visibilityM)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setVisibility"), visibilityM);
|
||||
}
|
||||
@@ -47,22 +47,22 @@ namespace BlackSimPlugin
|
||||
m_dbusInterface->callDBus(QLatin1String("setDewPoint"), degreesC);
|
||||
}
|
||||
|
||||
void CXBusWeatherProxy::setQNH(float inHg)
|
||||
void CXBusWeatherProxy::setQNH(double inHg)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setQNH"), inHg);
|
||||
}
|
||||
|
||||
void CXBusWeatherProxy::setPrecipitationRatio(float precipRatio)
|
||||
void CXBusWeatherProxy::setPrecipitationRatio(double precipRatio)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setPrecipitationRatio"), precipRatio);
|
||||
}
|
||||
|
||||
void CXBusWeatherProxy::setThunderstormRatio(float cbRatio)
|
||||
void CXBusWeatherProxy::setThunderstormRatio(double cbRatio)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setThunderstormRatio"), cbRatio);
|
||||
}
|
||||
|
||||
void CXBusWeatherProxy::setTurbulenceRatio(float turbulenceRatio)
|
||||
void CXBusWeatherProxy::setTurbulenceRatio(double turbulenceRatio)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setTurbulenceRatio"), turbulenceRatio);
|
||||
}
|
||||
@@ -77,7 +77,7 @@ namespace BlackSimPlugin
|
||||
m_dbusInterface->callDBus(QLatin1String("setCloudLayer"), layer, base, tops, type, coverage);
|
||||
}
|
||||
|
||||
void CXBusWeatherProxy::setWindLayer(int layer, int altitude, float direction, int speed, int shearDirection, int shearSpeed, int turbulence)
|
||||
void CXBusWeatherProxy::setWindLayer(int layer, int altitude, double direction, int speed, int shearDirection, int shearSpeed, int turbulence)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setWindLayer"), layer, altitude, direction, speed, shearDirection, shearSpeed, turbulence);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace BlackSimPlugin
|
||||
void setUseRealWeather(bool enable);
|
||||
|
||||
//! \copydoc XBus::CWeather::setVisibility
|
||||
void setVisibility(float visibilityM);
|
||||
void setVisibility(double visibilityM);
|
||||
|
||||
//! \copydoc XBus::CWeather::setTemperature
|
||||
void setTemperature(int degreesC);
|
||||
@@ -72,16 +72,16 @@ namespace BlackSimPlugin
|
||||
void setDewPoint(int degreesC);
|
||||
|
||||
//! \copydoc XBus::CWeather::setQNH
|
||||
void setQNH(float inHg);
|
||||
void setQNH(double inHg);
|
||||
|
||||
//! \copydoc XBus::CWeather::setPrecipitationRatio
|
||||
void setPrecipitationRatio(float precipRatio);
|
||||
void setPrecipitationRatio(double precipRatio);
|
||||
|
||||
//! \copydoc XBus::CWeather::setThunderstormRatio
|
||||
void setThunderstormRatio(float cbRatio);
|
||||
void setThunderstormRatio(double cbRatio);
|
||||
|
||||
//! \copydoc XBus::CWeather::setTurbulenceRatio
|
||||
void setTurbulenceRatio(float turbulenceRatio);
|
||||
void setTurbulenceRatio(double turbulenceRatio);
|
||||
|
||||
//! \copydoc XBus::CWeather::setRunwayFriction
|
||||
void setRunwayFriction(int friction);
|
||||
@@ -90,7 +90,7 @@ namespace BlackSimPlugin
|
||||
void setCloudLayer(int layer, int base, int tops, int type, int coverage);
|
||||
|
||||
//! \copydoc XBus::CWeather::setWindLayer
|
||||
void setWindLayer(int layer, int altitude, float direction, int speed, int shearDirection, int shearSpeed, int turbulence);
|
||||
void setWindLayer(int layer, int altitude, double direction, int speed, int shearDirection, int shearSpeed, int turbulence);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user