-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
119 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
extplane-panel (2.0.2) UNRELEASED; urgency=low | ||
|
||
* 2.0.2, Fixed more dependencies, better instruments, added whisky compass | ||
|
||
-- Ville Ranki <[email protected]> Thu, 19 Sep 2019 12:34:56 +0300 | ||
|
||
extplane-panel (2.0.1) UNRELEASED; urgency=low | ||
|
||
* 2.0.1, Fixed dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import QtQuick 2.0 | ||
import org.vranki.extplane 1.0 | ||
|
||
PanelItem { | ||
id: compass | ||
property var labels: ['N', '', '', '3', '', '', '6', '', '', 'E', '', '', '12', '', '', '15', '', '', 'S', '', '', '21', '', '', '24', '', '', 'W', '', '', '30', '', '', '33', '', ''] | ||
property int tapeWidth: 500 | ||
property int tapeHeight: 30 | ||
Component { | ||
id: tape | ||
Item { | ||
id: compassTape | ||
width: tapeWidth | ||
height: tapeHeight | ||
Repeater { | ||
model: 36 | ||
Item { | ||
width: 1 | ||
height: tapeHeight | ||
x: tapeWidth - tapeWidth * (index/36) | ||
Rectangle { | ||
color: "white" | ||
width: 2 | ||
height: tapeHeight * 0.2 | ||
y: tapeHeight - height | ||
} | ||
Text { | ||
text: labels[index] | ||
color: "white" | ||
font.pixelSize: tapeHeight * 0.7 | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Rectangle { | ||
x: parent.width / 2 | ||
scale: parent.height / 30 | ||
Loader { | ||
id: primaryTape | ||
sourceComponent: tape | ||
x: - (360 - hdgRef.value) * (tapeWidth/360) | ||
} | ||
Loader { | ||
sourceComponent: tape | ||
x: primaryTape.x + ((hdgRef.value > 180) ? -tapeWidth : tapeWidth) | ||
} | ||
} | ||
Rectangle { | ||
color: "white" | ||
width: 3 | ||
height: parent.height | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
} | ||
DataRef { | ||
id: hdgRef | ||
name: "sim/cockpit/misc/compass_indicated" | ||
accuracy: 0.5 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters