Beispiel #1
0
 public void Progress(ProgressiveMode mode, float roll = 0, float pitch = 0, float yaw = 0, float gaz = 0)
 {
     if (_navigationData.State.HasFlag(NavigationState.Flying))
     {
         _commandQueue.Enqueue(new ProgressiveCommand(mode, roll, pitch, yaw, gaz));
     }
 }
 public ProgressiveCommand(ProgressiveMode mode, float roll, float pitch, float yaw, float gaz)
 {
     _mode  = mode;
     _roll  = roll;
     _pitch = pitch;
     _yaw   = yaw;
     _gaz   = gaz;
 }
 public ProgressiveCommand(ProgressiveMode mode, float roll, float pitch, float yaw, float gaz)
 {
     _mode = mode;
     _roll = roll;
     _pitch = pitch;
     _yaw = yaw;
     _gaz = gaz;
 }
Beispiel #4
0
 public static string Progressive(ProgressiveMode mode, float roll, float pitch, float yaw, float gaz)
 {
     return(string.Format("AT*PCMD=[SEQUENCE],{0},{1},{2},{3},{4}\r",
                          (int)mode,
                          ConversionHelper.ToInt(roll),
                          ConversionHelper.ToInt(pitch),
                          ConversionHelper.ToInt(gaz),
                          ConversionHelper.ToInt(yaw)));
 }
Beispiel #5
0
 public async void CycleProgressiveMode()
 {
     _ProgressiveMode = (ProgressiveMode)(((int)_ProgressiveMode + 1) % Enum.GetNames(typeof(ProgressiveMode)).Length);
     await Log.Instance.WriteLineAsync("DroneClient:CycleProgressive");
 }
Beispiel #6
0
 public void Progress(ProgressiveMode mode, float roll = 0, float pitch = 0, float yaw = 0, float gaz = 0)
 {
     if (_navigationData.State.HasFlag(NavigationState.Flying))
         _commandQueue.Enqueue(new ProgressiveCommand(mode, roll, pitch, yaw, gaz));
 }
Beispiel #7
0
 public async void CycleProgressiveMode()
 {
     _ProgressiveMode = (ProgressiveMode)(((int)_ProgressiveMode + 1) % Enum.GetNames(typeof(ProgressiveMode)).Length);
     await Log.Instance.WriteLineAsync("DroneClient:CycleProgressive");
 }
Beispiel #8
0
 public void CycleProgressiveMode()
 {
     _ProgressiveMode = (ProgressiveMode)(((int)_ProgressiveMode + 1) % Enum.GetNames(typeof(ProgressiveMode)).Length);
 }