Skip to content

Commit 3dd2aa6

Browse files
MarioFPVdevMarioFPVdev
authored andcommitted
Cleanup
1 parent 2987cf4 commit 3dd2aa6

File tree

7 files changed

+14
-293
lines changed

7 files changed

+14
-293
lines changed

Configurator.Designer.vb

Lines changed: 3 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Configurator.vb

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3357,36 +3357,17 @@ err1:
33573357
MsgBox("File " + extern + " not found!")
33583358
Return
33593359
End If
3360-
Dim alink_info = "alink.conf"
3361-
If Not IO.File.Exists(alink_info) Then
3362-
MsgBox("File " + alink_info + " not found!")
3363-
Return
3364-
End If
3365-
Dim alink_info_filePath = alink_info
3366-
Dim alink_info_lines = IO.File.ReadAllLines(alink_info_filePath)
3367-
If alink_info_lines(6).StartsWith("rssi_weight=") Then
3368-
alink_info_lines(6) = "rssi_weight=" + CStr(1.0 - (trackWeight.Value / 10))
3369-
End If
3370-
If alink_info_lines(7).StartsWith("snr_weight=") Then
3371-
alink_info_lines(7) = "snr_weight=" + CStr(trackWeight.Value / 10)
3372-
End If
3373-
IO.File.WriteAllLines(alink_info_filePath, alink_info_lines)
33743360
If cmbTXProfile.Text <> "Select TXProfile" Then
3375-
Dim result As DialogResult = MessageBox.Show("The Adaptive Link is in ""Test Phase"" and might have glitches. Are you sure you want to proceed with the installation?", "Warning!!! Warning!!! Warning!!! Warning!!! Warning!!!", MessageBoxButtons.YesNo)
3376-
If result = DialogResult.No Then
3377-
MessageBox.Show("No changes are made in the system.")
3378-
ElseIf result = DialogResult.Yes Then
3379-
If IsValidIP(txtIP.Text) Then
3380-
With New Process()
3381-
.StartInfo.UseShellExecute = False
3382-
.StartInfo.FileName = extern
3383-
.StartInfo.Arguments = "alink " + String.Format("{0}", txtIP.Text) + " " + txtPassword.Text + " " + cmbTXProfile.Text
3384-
.StartInfo.RedirectStandardOutput = False
3385-
.Start()
3386-
End With
3387-
Else
3388-
MsgBox("Please enter a valid IP address")
3389-
End If
3361+
If IsValidIP(txtIP.Text) Then
3362+
With New Process()
3363+
.StartInfo.UseShellExecute = False
3364+
.StartInfo.FileName = extern
3365+
.StartInfo.Arguments = "alink " + String.Format("{0}", txtIP.Text) + " " + txtPassword.Text + " " + cmbTXProfile.Text
3366+
.StartInfo.RedirectStandardOutput = False
3367+
.Start()
3368+
End With
3369+
Else
3370+
MsgBox("Please enter a valid IP address")
33903371
End If
33913372
Else
33923373
MessageBox.Show("First select a TXProfile.")

Extern.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,10 @@ if "%1" == "pixelpilot" (
263263
)
264264

265265
if "%1" == "alink" (
266-
plink -ssh root@%2 -pw %3 killall alink_drone
267-
echo y | pscp -scp -pw %3 alink_drone root@%2:/usr/bin/
268-
echo y | pscp -scp -pw %3 yaml-cli-multi root@%2:/usr/bin/
269266
echo y | pscp -scp -pw %3 wlan_adapters.yaml root@%2:/etc/
270267
echo y | pscp -scp -pw %3 alink.conf root@%2:/etc/
271268
echo y | pscp -scp -pw %3 txprofiles/%4.conf root@%2:/etc/
272-
plink -ssh root@%2 -pw %3 mv /etc/%4.conf /etc/txprofiles.conf "&&" dos2unix /etc/alink.conf /etc/wlan_adapters.yaml /etc/txprofiles.conf "&&" chmod +x /usr/bin/alink_drone "&&" chmod +x /usr/bin/yaml-cli-multi "&&" reboot
269+
plink -ssh root@%2 -pw %3 mv /etc/%4.conf /etc/txprofiles.conf "&&" dos2unix /etc/alink.conf /etc/wlan_adapters.yaml /etc/txprofiles.conf "&&" reboot
273270
)
274271

275272
if "%1" == "box" (

alink.conf

Lines changed: 0 additions & 77 deletions
This file was deleted.

alink_drone

-45.7 KB
Binary file not shown.

wlan_adapters.yaml

Lines changed: 0 additions & 151 deletions
This file was deleted.

yaml-cli-multi

-18 KB
Binary file not shown.

0 commit comments

Comments
 (0)