Configurator.Net: Fix Magnetometer enable

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1745 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
mandrolic 2011-03-05 16:41:03 +00:00
parent ed46609c9a
commit ec5029e4fc
2 changed files with 27 additions and 3 deletions

View File

@ -33,7 +33,7 @@
<CreateWebPageOnPublish>true</CreateWebPageOnPublish> <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.htm</WebPage> <WebPage>index.htm</WebPage>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish> <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>8</ApplicationRevision> <ApplicationRevision>9</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted> <PublishWizardCompleted>true</PublishWizardCompleted>

View File

@ -25,9 +25,33 @@ namespace ArducopterConfigurator.PresentationModels
}; };
} }
public float KPrate { get; set; }
public bool MagnetometerEnable { get; set; } private float _kprate;
public float KPrate
{
get { return _kprate; }
set
{
if (_kprate == value) return;
_kprate = value;
FirePropertyChanged("KPrate");
}
}
private bool _magEnable;
public bool MagnetometerEnable
{
get { return _magEnable; }
set
{
if (_magEnable == value) return;
_magEnable = value;
FirePropertyChanged("MagnetometerEnable");
}
}
public override string Name public override string Name
{ {