-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
9 changed files
with
141 additions
and
56 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
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
File renamed without changes.
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,47 @@ | ||
import QtQuick 2.12 | ||
import QtQuick.Controls 2.12 | ||
import QtQuick.Layouts 1.12 | ||
import QtQuick.Dialogs 1.0 | ||
import QtQuick.Controls.Material 2.12 | ||
|
||
import Qt.labs.settings 1.0 | ||
|
||
import OpenHD 1.0 | ||
|
||
import "../../../ui" as Ui | ||
import "../../elements" | ||
|
||
Rectangle{ | ||
width: parent.width | ||
height: parent.height | ||
ColumnLayout{ | ||
anchors.fill: parent | ||
spacing: 6 | ||
Text{ | ||
Layout.fillWidth: true | ||
Layout.alignment: Qt.AlignTop | ||
Layout.preferredHeight: 50 | ||
//width:parent.width | ||
wrapMode: Text.WordWrap | ||
verticalAlignment: Text.AlignTop | ||
text: "When running QOpenHD on an external device (e.g. android phone)\n"+ | ||
"you have to use one of the given choices to connect the device to the OpenHD ground station" | ||
} | ||
Text{ | ||
Layout.preferredHeight: 50 | ||
text: "You are already connected to your ground station - nothing to do." | ||
color: "#706F1D" // dark green | ||
visible: m_is_connected_gnd | ||
} | ||
Text{ | ||
Layout.preferredHeight: 50 | ||
text: "Looks like you are not connected to your ground station - please use one of the given choices to connect." | ||
color: "red" | ||
visible: !m_is_connected_gnd | ||
} | ||
Item{ | ||
Layout.fillHeight: true | ||
// filler | ||
} | ||
} | ||
} |
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,52 @@ | ||
import QtQuick 2.12 | ||
import QtQuick.Controls 2.12 | ||
import QtQuick.Layouts 1.12 | ||
import QtQuick.Dialogs 1.0 | ||
import QtQuick.Controls.Material 2.12 | ||
|
||
import Qt.labs.settings 1.0 | ||
|
||
import OpenHD 1.0 | ||
|
||
import "../../../ui" as Ui | ||
import "../../elements" | ||
|
||
Rectangle { | ||
width: parent.width | ||
height: parent.height | ||
//color: "green" | ||
|
||
property string m_info_text: "Use this mode if you are running QOpenHD on your ground station itself - e.g. if you are using a RPI as ground station and connected | ||
a display via HDMI to your ground station, or x86 and running OpenHD Core and QOpenHD on the same system."+ | ||
"In this mode, QOpenHD uses UDP localhost to communicate with OpenHD core via mavlink (lowest latency and best performance). | ||
However, if you are running QOpenHD as an app on an external device (e.g. your android phone) you have to use the appropiate connection page and its description to | ||
connect QOpenHD to your ground station." | ||
|
||
property bool m_local_mode_enabled: _mavlinkTelemetry.udp_localhost_mode_enabled | ||
|
||
ColumnLayout{ | ||
anchors.fill: parent | ||
|
||
spacing: 6 | ||
Text{ | ||
Layout.fillWidth: true | ||
Layout.preferredHeight: 200 | ||
//Layout.alignment: Qt.AlignTop | ||
//width:parent.width | ||
wrapMode: Text.WordWrap | ||
text: m_info_text | ||
} | ||
Button{ | ||
text: m_local_mode_enabled ? "LOCAL MODE ACTIVE" : "ENABLE LOCAL MODE" | ||
onClicked: { | ||
_mavlinkTelemetry.enable_udp() | ||
} | ||
enabled: !m_local_mode_enabled | ||
} | ||
// filler | ||
Item{ | ||
Layout.fillWidth: true | ||
Layout.fillHeight: true | ||
} | ||
} | ||
} |
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