コード例 #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;
     }
 }