From a5316d6edcd8e93e4ae78181717152da22722e80 Mon Sep 17 00:00:00 2001 From: MarioFPVdev Date: Mon, 27 Jan 2025 09:26:35 +0000 Subject: [PATCH] Added support for SBC Groundstation ver. 1.9.6 Radxa Zero 3W/E --- Configurator.Designer.vb | 19 ++++++++++++++++--- Configurator.vb | 6 +++--- Extern.bat | 4 ++-- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/Configurator.Designer.vb b/Configurator.Designer.vb index a83a2b2..0b7cab0 100644 --- a/Configurator.Designer.vb +++ b/Configurator.Designer.vb @@ -210,6 +210,7 @@ Partial Class Configurator BackgroundWorker1 = New ComponentModel.BackgroundWorker() Timer1 = New Timer(components) Label12 = New Label() + Label13 = New Label() TabControl1.SuspendLayout() TabPage1.SuspendLayout() TabPage2.SuspendLayout() @@ -2517,7 +2518,6 @@ Partial Class Configurator rBtnRadxaZero3w.TabIndex = 29 rBtnRadxaZero3w.Text = "Radxa Zero 3w (WFB-ng)" rBtnRadxaZero3w.UseVisualStyleBackColor = True - rBtnRadxaZero3w.Visible = False ' ' Label3 ' @@ -2551,11 +2551,22 @@ Partial Class Configurator Label12.AutoSize = True Label12.Font = New Font("Arial", 6F, FontStyle.Bold) Label12.ForeColor = Color.White - Label12.Location = New Point(610, 434) + Label12.Location = New Point(610, 443) Label12.Name = "Label12" Label12.Size = New Size(41, 10) Label12.TabIndex = 51 - Label12.Text = "23/01/2025" + Label12.Text = "27/01/2025" + ' + ' Label13 + ' + Label13.AutoSize = True + Label13.Font = New Font("Arial", 6F, FontStyle.Bold) + Label13.ForeColor = Color.White + Label13.Location = New Point(606, 433) + Label13.Name = "Label13" + Label13.Size = New Size(45, 10) + Label13.TabIndex = 52 + Label13.Text = "SBC v1.9.6" ' ' Configurator ' @@ -2563,6 +2574,7 @@ Partial Class Configurator AutoScaleMode = AutoScaleMode.Font BackColor = Color.FromArgb(CByte(45), CByte(45), CByte(45)) ClientSize = New Size(667, 507) + Controls.Add(Label13) Controls.Add(Label12) Controls.Add(connected) Controls.Add(btnSaveReboot) @@ -2793,5 +2805,6 @@ Partial Class Configurator Friend WithEvents btnGSMSPOSD As Button Friend WithEvents btnAIRMSPOSD As Button Friend WithEvents Label12 As Label + Friend WithEvents Label13 As Label End Class diff --git a/Configurator.vb b/Configurator.vb index b9cb759..d63a458 100755 --- a/Configurator.vb +++ b/Configurator.vb @@ -396,7 +396,7 @@ err1: Dim LineOfText As String Dim array() As String - LineOfText = ReadLine(1, DisplayReaderallLines) + LineOfText = ReadLine(2, DisplayReaderallLines) array = LineOfText.Split("@") txtResolutionVRX.Text = array(0) txtCodecVRX.Text = array(1) @@ -1139,7 +1139,7 @@ err1: Private Sub cmbResolutionVRX_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cmbResolutionVRX.SelectedIndexChanged If rBtnRadxaZero3w.Checked Then - txtResolutionVRX.Text = cmbResolutionVRX.SelectedItem.ToString + txtResolutionVRX.Text = "mode = " + cmbResolutionVRX.SelectedItem.ToString Else txtResolutionVRX.Text = "mode=" & cmbResolutionVRX.SelectedItem.ToString End If @@ -2683,7 +2683,7 @@ err1: Dim setdisplayfilePath = setdisplay Dim setdisplaylines = IO.File.ReadAllLines(setdisplayfilePath) For x = 0 To setdisplaylines.Count - 1 - setdisplaylines(x) = txtResolutionVRX.Text + "@" + txtCodecVRX.Text + setdisplaylines(1) = txtResolutionVRX.Text + "@" + txtCodecVRX.Text Next IO.File.WriteAllLines(setdisplayfilePath, setdisplaylines) Else diff --git a/Extern.bat b/Extern.bat index a9ac766..b6a134f 100755 --- a/Extern.bat +++ b/Extern.bat @@ -127,12 +127,12 @@ if "%1" == "remmspextra" ( ) if "%1" == "msposdair" ( - plink -ssh root@%2 -pw %3 sed -i 's/ground/air/' /config/scripts/osd + plink -ssh root@%2 -pw %3 sed -i 's/render = ground/render = air/' /config/scripts/osd plink -ssh root@%2 -pw %3 reboot ) if "%1" == "msposdgs" ( - plink -ssh root@%2 -pw %3 sed -i 's/air/ground/' /config/scripts/osd + plink -ssh root@%2 -pw %3 sed -i 's/render = air/render = ground/' /config/scripts/osd plink -ssh root@%2 -pw %3 reboot )