Skip to content
Snippets Groups Projects
Commit b3e55578 authored by Michael Oborne's avatar Michael Oborne
Browse files

Mission Planner 1.2.25

fix scaling problem on arducopter config tab. when linking is enabled
parent 099a2aba
No related branches found
No related tags found
No related merge requests found
...@@ -299,7 +299,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView ...@@ -299,7 +299,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("_RLL_", "_PIT_"); string newname = name.Replace("_RLL_", "_PIT_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
...@@ -312,7 +312,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView ...@@ -312,7 +312,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("_PIT_", "_RLL_"); string newname = name.Replace("_PIT_", "_RLL_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
...@@ -327,7 +327,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView ...@@ -327,7 +327,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("NAV_LAT_", "NAV_LON_"); string newname = name.Replace("NAV_LAT_", "NAV_LON_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
...@@ -340,7 +340,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView ...@@ -340,7 +340,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("LOITER_LAT_", "LOITER_LON_"); string newname = name.Replace("LOITER_LAT_", "LOITER_LON_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
...@@ -353,7 +353,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView ...@@ -353,7 +353,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
{ {
string newname = name.Replace("HLD_LAT_", "HLD_LON_"); string newname = name.Replace("HLD_LAT_", "HLD_LON_");
Control[] arr = this.Controls.Find(newname, true); Control[] arr = this.Controls.Find(newname, true);
changes[newname] = float.Parse(((Control)sender).Text); changes[newname] = value;
if (arr.Length > 0) if (arr.Length > 0)
{ {
......
...@@ -34,5 +34,5 @@ using System.Resources; ...@@ -34,5 +34,5 @@ using System.Resources;
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.*")] [assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.2.24")] [assembly: AssemblyFileVersion("1.2.25")]
[assembly: NeutralResourcesLanguageAttribute("")] [assembly: NeutralResourcesLanguageAttribute("")]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment