APM Planner 1.1.77

fix param xml namespace issue
prevent sending unchanged params
This commit is contained in:
Michael Oborne 2012-04-30 20:07:14 +08:00
parent fda96ae3a6
commit 9d6fd77a23
7 changed files with 10 additions and 4 deletions

View File

@ -490,6 +490,12 @@ namespace ArdupilotMega
return false; return false;
} }
if ((float)param[paramname] == value)
{
log.Debug("setParam "+paramname + " not modified");
return true;
}
MainV2.giveComport = true; MainV2.giveComport = true;
mavlink_param_set_t req = new mavlink_param_set_t(); mavlink_param_set_t req = new mavlink_param_set_t();

View File

@ -46,7 +46,7 @@ namespace ArdupilotMega
if (System.Diagnostics.Debugger.IsAttached) if (System.Diagnostics.Debugger.IsAttached)
{ {
// testing // testing
// Utilities.ParameterMetaDataParser.GetParameterInformation(); Utilities.ParameterMetaDataParser.GetParameterInformation();
} }
try try

View File

@ -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.1.76")] [assembly: AssemblyFileVersion("1.1.77")]
[assembly: NeutralResourcesLanguageAttribute("")] [assembly: NeutralResourcesLanguageAttribute("")]

View File

@ -33,7 +33,7 @@ namespace ArdupilotMega.Utilities
{ {
// Use this to find the endpoint node we are looking for // Use this to find the endpoint node we are looking for
// Either it will be pulled from a file in the ArduPlane hierarchy or the ArduCopter hierarchy // Either it will be pulled from a file in the ArduPlane hierarchy or the ArduCopter hierarchy
var element = _parameterMetaDataXML.Element(MainV2.cs.firmware.ToString()); var element = _parameterMetaDataXML.Element("Params").Element(MainV2.cs.firmware.ToString());
if(element != null && element.HasElements) if(element != null && element.HasElements)
{ {
var node = element.Element(nodeKey); var node = element.Element(nodeKey);

View File

@ -1 +1 @@
1.1.4503.33640 1.1.4503.36159