2011-02-13 05:25:54 -04:00
|
|
|
using System;
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
namespace ArducopterConfigurator.PresentationModels
|
|
|
|
{
|
2011-02-14 10:48:47 -04:00
|
|
|
public class StableModeConfigVm : ConfigWithPidsBase
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
2011-02-13 05:25:54 -04:00
|
|
|
public StableModeConfigVm()
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
2011-02-14 10:48:47 -04:00
|
|
|
updateString = "A";
|
|
|
|
refreshString = "B";
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
PropsInUpdateOrder = new[]
|
|
|
|
{
|
|
|
|
"RollP",
|
|
|
|
"RollI",
|
|
|
|
"RollD",
|
|
|
|
"PitchP",
|
|
|
|
"PitchI",
|
|
|
|
"PitchD",
|
|
|
|
"YawP",
|
|
|
|
"YawI",
|
|
|
|
"YawD",
|
|
|
|
"KPrate",
|
|
|
|
"MagnetometerEnable",
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-03-05 12:41:03 -04:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|
2010-12-18 18:23:09 -04:00
|
|
|
|
2011-02-14 10:48:47 -04:00
|
|
|
public override string Name
|
2011-02-13 05:25:54 -04:00
|
|
|
{
|
|
|
|
get { return "Stable Mode"; }
|
2010-12-18 18:23:09 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|