Skip to content

Commit

Permalink
Turn & slip indicator now has configurable 1 or 2 min turn rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
vranki committed Feb 22, 2020
1 parent 57b2655 commit 8aa0e2e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Homepage: https://github.com/vranki/ExtPlane-Panel

Package: extplane-panel
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, qml-module-qt-labs-settings, qml-module-qtquick-layouts, qml-module-qtquick-window2, qml-module-qtquick2, qml-module-qtquick-dialogs, qml-module-qtquick-controls, qml-module-qtquick-shapes
Depends: ${shlibs:Depends}, ${misc:Depends}, qml-module-qt-labs-settings, qml-module-qtquick-layouts, qml-module-qtquick-window2, qml-module-qtquick2, qml-module-qtquick-dialogs, qml-module-qtquick-controls, qml-module-qtquick-shapes, qml-module-qtquick-controls2
Description: An external, networked cockpit panel for X-Plane flight simulator and a couple of others.
It is possible to run this panel on the same computer or another computer on the
network to display cockpit instruments from remote X-Plane.
Expand Down
14 changes: 13 additions & 1 deletion qmlui/panelitems/TurnAndSlip.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import QtQuick 2.0
import QtQuick.Controls 2.2
import org.vranki.extplane 1.0
import "needle" as Needle
import "." as PanelItems

PanelItem {
Item {
Expand Down Expand Up @@ -67,7 +69,17 @@ PanelItem {
width: parent.width
height: parent.height
anchors.centerIn: parent
rotation: limitValue(parseFloat(twoMin ? turnRef.value : turnRef.value / 2), -50, 50)
rotation: limitValue(parseFloat(settings.twoMin ? turnRef.value : turnRef.value / 2), -50, 50)
}
}
propertiesDialog.helpText: 'Basic GA turn & slip indicator. 2 minute version used in powered planes, 1 min version in gliders.'
propertiesDialog.propertyItems: [
Text { text: "2 minute version" },
CheckBox { checked: settings.twoMin ; onCheckedChanged: settings.twoMin = checked }
]

PanelItems.PanelItemSettings {
id: settings
property bool twoMin: true
}
}

0 comments on commit 8aa0e2e

Please sign in to comment.