Skip to content

Commit

Permalink
Added support for SBC Groundstation ver. 1.9.6 Radxa Zero 3W/E
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioFPVdev authored and MarioFPVdev committed Jan 27, 2025
1 parent 12e0bf8 commit a5316d6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
19 changes: 16 additions & 3 deletions Configurator.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Configurator.vb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Extern.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit a5316d6

Please sign in to comment.