/// <summary> /// Switchs the drone camera. /// </summary> /// <param name="Type">Video channel type.</param> private void switchDroneCamera(AR.Drone.Client.Configuration.VideoChannelType Type) { var configuration = new AR.Drone.Client.Configuration.Settings(); configuration.Video.Channel = Type; droneClient.Send(configuration); }
/// <summary> /// Toggle the drone cameras from front to bottom and vice versa /// </summary> public void toggleDroneCame() { if (actualVideoChannel.Equals(AR.Drone.Client.Configuration.VideoChannelType.Vertical)) { switchDroneCamera(AR.Drone.Client.Configuration.VideoChannelType.Horizontal); actualVideoChannel = AR.Drone.Client.Configuration.VideoChannelType.Horizontal; } else { switchDroneCamera(AR.Drone.Client.Configuration.VideoChannelType.Vertical); actualVideoChannel = AR.Drone.Client.Configuration.VideoChannelType.Vertical; } }
/// <summary> /// Toggle the drone cameras from front to bottom and vice versa /// </summary> public void toggleDroneCame() { if(actualVideoChannel.Equals(AR.Drone.Client.Configuration.VideoChannelType.Vertical)){ switchDroneCamera(AR.Drone.Client.Configuration.VideoChannelType.Horizontal); actualVideoChannel = AR.Drone.Client.Configuration.VideoChannelType.Horizontal; } else { switchDroneCamera(AR.Drone.Client.Configuration.VideoChannelType.Vertical); actualVideoChannel = AR.Drone.Client.Configuration.VideoChannelType.Vertical; } }