2011-02-13 05:25:54 -04:00
|
|
|
using System;
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
namespace ArducopterConfigurator.PresentationModels
|
|
|
|
{
|
2010-12-22 06:04:16 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Vm for Altitude hold settings
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// Todo: this one is weird because the APM sends and receives the values
|
|
|
|
/// in a different order
|
|
|
|
/// There is a unit test to cover it but it will need fixing.
|
2011-02-14 10:48:47 -04:00
|
|
|
/// TODO: test this
|
2010-12-22 06:04:16 -04:00
|
|
|
/// </remarks>
|
2011-02-16 18:19:32 -04:00
|
|
|
public class AltitudeHoldConfigVm : CrudVm
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
2011-02-13 05:25:54 -04:00
|
|
|
public AltitudeHoldConfigVm()
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
2011-02-14 10:48:47 -04:00
|
|
|
updateString = "E";
|
|
|
|
refreshString = "F";
|
|
|
|
PropsInUpdateOrder = new[] {"P", "I", "D",};
|
2010-12-18 18:23:09 -04:00
|
|
|
}
|
|
|
|
|
2010-12-20 18:14:39 -04:00
|
|
|
public float P { get; set; }
|
|
|
|
public float I { get; set; }
|
|
|
|
public float D { get; set; }
|
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 "Altitude Hold"; }
|
2010-12-18 18:23:09 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|