Пример #1
0
    /// <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);
    }
Пример #2
0
 /// <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;
     }
 }
Пример #3
0
 /// <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;
     }
 }