Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gcs 58 silvus rssi backend code 1 #9

Open
wants to merge 3 commits into
base: carbonix/dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
*Mission Planner 1.3.80 - 20-03-2023
*Mission Planner 1.3.80 - 19-07-2023
GCS-58 : Silvus RSSI data display on MP
GCS-58 : Silvus RSSI Plugin implementation

*Mission Planner 1.3.80 - 20-03-2023
MAVFtp: fix locker static
MAVFtp: add lock on dir list
Graphs: update
Expand Down
805 changes: 465 additions & 340 deletions GCSViews/FlightData.Designer.cs

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions GCSViews/FlightData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6181,5 +6181,54 @@ private void multiLineToolStripMenuItem_Click(object sender, EventArgs e)
tabControlactions.Multiline = !tabControlactions.Multiline;
Settings.Instance["tabControlactions_Multiline"] = tabControlactions.Multiline.ToString();
}


public void update_snr_data(int index, string name, int rssi1, int rssi2, float snr)
{
try
{
if (index == 1)
{
silvus1_name.Text = name;
//if (silvus1_rssi1.Text == "") // && Int32.Parse(silvus1_rssi1.Text) != rssi1)
silvus1_rssi1.Text = rssi1.ToString();
//if (silvus1_rssi2.Text == "") // && Int32.Parse(silvus1_rssi2.Text) != rssi2)
silvus1_rssi2.Text = rssi2.ToString();
//if (silvus1_snr.Text == "") // && float.Parse(silvus1_snr.Text) != snr)
{
silvus1_snr.Text = snr.ToString();
if (snr < 5)
silvus1_snr.BackColor = Color.Red;
else if (snr < 15)
silvus1_snr.BackColor = Color.Yellow;
else if (snr < 20)
silvus1_snr.BackColor = Color.LightGreen;
else
silvus1_snr.BackColor = Color.Green;
}
}
else if (index == 2)
{
silvus2_name.Text = name;
//if (silvus2_rssi1.Text == "") // && Int32.Parse(silvus2_rssi1.Text) != rssi1)
silvus2_rssi1.Text = rssi1.ToString();
//if (silvus2_rssi2.Text == "") // && Int32.Parse(silvus2_rssi2.Text) != rssi2)
silvus2_rssi2.Text = rssi2.ToString();
//if (silvus2_snr.Text == "") // && float.Parse(silvus2_snr.Text) != snr)
{
silvus2_snr.Text = snr.ToString();
if (snr < 5)
silvus2_snr.BackColor = Color.Red;
else if (snr < 15)
silvus2_snr.BackColor = Color.Yellow;
else if (snr < 20)
silvus2_snr.BackColor = Color.LightGreen;
else
silvus2_snr.BackColor = Color.Green;
}
}
}
catch { }
}
}
}
Loading