You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.7 KiB
61 lines
1.7 KiB
14 years ago
|
using System;
|
||
|
|
||
14 years ago
|
namespace ArducopterConfigurator.PresentationModels
|
||
|
{
|
||
14 years ago
|
public class StableModeConfigVm : ConfigWithPidsBase
|
||
14 years ago
|
{
|
||
14 years ago
|
public StableModeConfigVm()
|
||
14 years ago
|
{
|
||
14 years ago
|
updateString = "A";
|
||
|
refreshString = "B";
|
||
|
|
||
14 years ago
|
PropsInUpdateOrder = new[]
|
||
|
{
|
||
|
"RollP",
|
||
|
"RollI",
|
||
|
"RollD",
|
||
|
"PitchP",
|
||
|
"PitchI",
|
||
|
"PitchD",
|
||
|
"YawP",
|
||
|
"YawI",
|
||
|
"YawD",
|
||
|
"KPrate",
|
||
|
"MagnetometerEnable",
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
14 years ago
|
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");
|
||
|
}
|
||
|
}
|
||
14 years ago
|
|
||
14 years ago
|
public override string Name
|
||
14 years ago
|
{
|
||
|
get { return "Stable Mode"; }
|
||
14 years ago
|
}
|
||
|
}
|
||
|
}
|