Skip to content

Commit

Permalink
add external device count, new simplified ethernet param
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Apr 26, 2024
1 parent 64c9b7b commit f10d8a6
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions qml/ui/configpopup/connect/PaneConnectionMode.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Rectangle{

property bool m_is_air_or_ground_connected: _ohdSystemAir.is_alive || _ohdSystemGround.is_alive

property int m_prefered_width: 230

ScrollView {
id: main_item
width: parent.width
Expand Down Expand Up @@ -112,7 +114,7 @@ Rectangle{
}
Button{
text: "Android Tethering"
Layout.preferredWidth: 180
Layout.preferredWidth: m_prefered_width
Layout.alignment: Qt.AlignCenter
onClicked: {
if(_qopenhd.is_android()){
Expand All @@ -139,8 +141,8 @@ Rectangle{
Layout.fillWidth: true
}
Button{
text: "Wifi tethering"
Layout.preferredWidth: 180
text: "Wifi Hotspot"
Layout.preferredWidth: m_prefered_width
Layout.alignment: Qt.AlignCenter
//TODO enable hotspot
onClicked: {
Expand All @@ -162,19 +164,20 @@ Rectangle{
Layout.fillWidth: true
}
Button{
text: "Passive Eth tethering"
Layout.preferredWidth: 180
text: "ETHERNET FORWARD+INTERNET"
Layout.preferredWidth: m_prefered_width
Layout.alignment: Qt.AlignCenter
//TODO disable active tethering and enable passive when clicking the button
onClicked: {
_qopenhd.show_toast("Please read info");
}
}
ButtonIconInfoText {
m_info_text: "1) Disable ETH_HOTSPOT_E and Enable ETH_PASSIVE_F\n\n"+
"2) Connect your external device to your ground station via ethernet.\n\n"+
"3) Select 'share my internet with ...' when the android connection setup pops up\n\n"+
"Video and telemetry forwarding should start automatically, internet will be forwarded from your phone."
m_info_text: "1) Set ETHERNET to FORWARD+INTERNET\n"+
"2) Reboot ground\n"+
"3) Connect your external device (phone) to your ground station via ethernet.\n\n"+
"4) Select 'share my internet with ...' when the (android) connection setup pops up\n\n"+
"Video and telemetry forwarding is started automatically, internet will be forwarded from your phone."
}
Item{ // filler
Layout.fillWidth: true
Expand All @@ -185,17 +188,18 @@ Rectangle{
Layout.fillWidth: true
}
Button{
text: "Active Eth tethering"
Layout.preferredWidth: 180
text: "ETHERNET HOTSPOT"
Layout.preferredWidth: m_prefered_width
Layout.alignment: Qt.AlignCenter
//TODO disable passive tethering and enable active when clicking the button
onClicked: {
_qopenhd.show_toast("Please read info");
}
}
ButtonIconInfoText {
m_info_text: "1) Disable ETH_PASSIVE_F and Enable ETH_HOTSPOT_E\n\n"+
"2) Connect your external device to your ground station via ethernet.\n\n"+
m_info_text: "1) Set ETHERNET to HOTSPOT\n"+
"2) Reboot ground\n"+
"3) Connect your external device to your ground station via ethernet.\n\n"+
"You might need to disable wifi and cellular on your phone\n\n"+
"Video and telemetry forwarding should start automatically, internet will not be available."
}
Expand Down

0 comments on commit f10d8a6

Please sign in to comment.