2011-02-13 14:14:28 -04:00
|
|
|
using System;
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
namespace ArducopterConfigurator.PresentationModels
|
|
|
|
{
|
2011-02-13 14:14:28 -04:00
|
|
|
public class MotorCommandsVm : NotifyProperyChangedBase, IPresentationModel
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
2011-02-13 14:14:28 -04:00
|
|
|
public string Name
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
2011-02-13 14:14:28 -04:00
|
|
|
get { return "Motor Commands"; }
|
2010-12-18 18:23:09 -04:00
|
|
|
}
|
|
|
|
|
2011-02-13 14:14:28 -04:00
|
|
|
public void Activate()
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-02-13 14:14:28 -04:00
|
|
|
public void DeActivate()
|
|
|
|
{
|
|
|
|
// todo stop
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler updatedByApm;
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
public int MotorFront { get; set; }
|
|
|
|
public int MotorRear { get; set; }
|
|
|
|
public int MotorLeft { get; set; }
|
|
|
|
public int MotorRight { get; set; }
|
|
|
|
|
|
|
|
public void SendCommand()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public void StopCommand()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-02-13 14:14:28 -04:00
|
|
|
public void handleLineOfText(string strRx)
|
2010-12-18 18:23:09 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-02-13 14:14:28 -04:00
|
|
|
public event EventHandler<sendTextToApmEventArgs> sendTextToApm;
|
2010-12-18 18:23:09 -04:00
|
|
|
}
|
|
|
|
}
|