Fixed missing gs from situation form

This commit is contained in:
Klaus Basan
2019-02-08 15:35:25 +01:00
committed by Mat Sutcliffe
parent b0f11362be
commit b476ce4894
2 changed files with 5 additions and 4 deletions

View File

@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>976</width> <width>631</width>
<height>162</height> <height>133</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">

View File

@@ -137,12 +137,13 @@ namespace BlackGui
CPressure CSituationForm::getBarometricPressureMsl() const CPressure CSituationForm::getBarometricPressureMsl() const
{ {
return CPressure(getBarometricPressureMslMillibar(), CPressureUnit::mbar()); return CPressure(this->getBarometricPressureMslMillibar(), CPressureUnit::mbar());
} }
CSpeed CSituationForm::getGroundSpeed() const CSpeed CSituationForm::getGroundSpeed() const
{ {
return CSpeed(0, CSpeedUnit::kts()); const int gsKts = ui->sb_GsKts->value();
return CSpeed(gsKts, CSpeedUnit::kts());
} }
void CSituationForm::setReadOnly(bool readonly) void CSituationForm::setReadOnly(bool readonly)