mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
* Before this commit, only the true altitude was known for an aircraft situation. The pressure altitude was not available anywhere yet. * This caused a wrong altitude in radar clients. * We fix this reading the pressure altitude from the simulators and set it in the own aircraft situation. * MS Flight Simulators have the pressure altitude in the APIs available. * For X-Plane and emulated simulator, we need to calculate it from the pressure at sea level. * Finally, we use the new available pressure altitude to send it to the FSD server. Maniphest Tasks: Ref T223
307 lines
9.5 KiB
XML
307 lines
9.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>CSituationForm</class>
|
|
<widget class="QFrame" name="CSituationForm">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>512</width>
|
|
<height>439</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Frame</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="vl_SituationForm">
|
|
<property name="leftMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QGroupBox" name="gb_Situation">
|
|
<property name="title">
|
|
<string>Situation</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QFrame" name="comp_Situation">
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<layout class="QGridLayout" name="gl_Situation" columnstretch="1,0,0,0">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="lbl_Bank">
|
|
<property name="text">
|
|
<string>Bank (-179° to 180°):</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="3">
|
|
<widget class="QSlider" name="hs_Pitch">
|
|
<property name="minimum">
|
|
<number>-179</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>180</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksAbove</enum>
|
|
</property>
|
|
<property name="tickInterval">
|
|
<number>25</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLineEdit" name="le_Pitch">
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="placeholderText">
|
|
<string>deg.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="le_Bank">
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="placeholderText">
|
|
<string>deg.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="lbl_Pitch">
|
|
<property name="text">
|
|
<string>Pitch (-179° to 180°):</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="QSlider" name="hs_Bank">
|
|
<property name="minimum">
|
|
<number>-179</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>180</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksAbove</enum>
|
|
</property>
|
|
<property name="tickInterval">
|
|
<number>25</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<spacer name="vs_Situation">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QToolButton" name="tb_ResetBank">
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../../blackmisc/blackmisc.qrc">
|
|
<normaloff>:/diagona/icons/diagona/icons/cross-white.png</normaloff>:/diagona/icons/diagona/icons/cross-white.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2">
|
|
<widget class="QToolButton" name="tb_ResetPitch">
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../../blackmisc/blackmisc.qrc">
|
|
<normaloff>:/diagona/icons/diagona/icons/cross-white.png</normaloff>:/diagona/icons/diagona/icons/cross-white.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="3" alignment="Qt::AlignRight">
|
|
<widget class="QPushButton" name="pb_Set">
|
|
<property name="text">
|
|
<string>set</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="gb_Coordinate">
|
|
<property name="title">
|
|
<string>Coordinate</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<item>
|
|
<widget class="BlackGui::Editors::CCoordinateForm" name="comp_Coordinate">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>100</height>
|
|
</size>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::StyledPanel</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="gb_Environment">
|
|
<property name="title">
|
|
<string>Environment</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QFrame" name="comp_Environment">
|
|
<property name="frameShape">
|
|
<enum>QFrame::NoFrame</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<layout class="QGridLayout" name="gl_Environment" columnstretch="1,0,0,0">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="lbl_Pressure">
|
|
<property name="text">
|
|
<string>Pressure MSL (980 - 1046 mbar)</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="le_Pressure">
|
|
<property name="text">
|
|
<string>1013.00</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QToolButton" name="tb_ResetPressure">
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../../blackmisc/blackmisc.qrc">
|
|
<normaloff>:/diagona/icons/diagona/icons/cross-white.png</normaloff>:/diagona/icons/diagona/icons/cross-white.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="QSlider" name="hs_Pressure">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>980</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>1046</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>1013</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="invertedAppearance">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="invertedControls">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksAbove</enum>
|
|
</property>
|
|
<property name="tickInterval">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="3" alignment="Qt::AlignRight">
|
|
<widget class="QPushButton" name="pb_SetEnvironment">
|
|
<property name="text">
|
|
<string>set</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>BlackGui::Editors::CCoordinateForm</class>
|
|
<extends>QFrame</extends>
|
|
<header>blackgui/editors/coordinateform.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="../../blackmisc/blackmisc.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|