Skip to content

Commit 6adbdbc

Browse files
committed
ConfigParamLoading: add retry button
ConnectionControl: on change mav check if full param list needed #2784
1 parent 11d0ad1 commit 6adbdbc

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

Controls/ConnectionControl.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ private void CMB_sysid_SelectedIndexChanged(object sender, EventArgs e)
131131
MainV2.comPort.sysidcurrent = temp.sysid;
132132
MainV2.comPort.compidcurrent = temp.compid;
133133

134-
if (MainV2.comPort.MAV.param.Count == 0 && !(Control.ModifierKeys == Keys.Control))
134+
if (MainV2.comPort.MAV.param.TotalReceived < MainV2.comPort.MAV.param.TotalReported &&
135+
/*MainV2.comPort.MAV.compid == (byte)MAVLink.MAV_COMPONENT.MAV_COMP_ID_AUTOPILOT1 && */
136+
!(Control.ModifierKeys == Keys.Control))
135137
MainV2.comPort.getParamList();
136138

137139
MainV2.View.Reload();

GCSViews/ConfigurationView/ConfigParamLoading.Designer.cs

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

GCSViews/ConfigurationView/ConfigParamLoading.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,10 @@ private void timer1_Tick(object sender, EventArgs e)
4646
if (gotAllParams)
4747
MainV2.View.Reload();
4848
}
49+
50+
private void but_forceparams_Click(object sender, EventArgs e)
51+
{
52+
MainV2.comPort.getParamList();
53+
}
4954
}
5055
}

0 commit comments

Comments
 (0)