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 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))); }
public async void CycleProgressiveMode() { _ProgressiveMode = (ProgressiveMode)(((int)_ProgressiveMode + 1) % Enum.GetNames(typeof(ProgressiveMode)).Length); await Log.Instance.WriteLineAsync("DroneClient:CycleProgressive"); }
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 void CycleProgressiveMode() { _ProgressiveMode = (ProgressiveMode)(((int)_ProgressiveMode + 1) % Enum.GetNames(typeof(ProgressiveMode)).Length); }