Ejemplo n.º 1
0
 void controlconnection_StateChanged(CommunicationEndpoint source, string state)
 {
     if (source is TCPCommunicationEndPoint)
     {
         if (source.commType == CommunicationEndpoint.Communicationtype.Command)
         {
             if (state == "Connected")
             {
                 UAVCommons.Commands.GetParameters getcmd = new UAVCommons.Commands.GetParameters();
                 SendCommand(getcmd);
             }
         }
     }
 }
Ejemplo n.º 2
0
 void controlconnection_StateChanged(CommunicationEndpoint source, string state)
 {
     if (source is TCPCommunicationEndPoint)
     {
         if (source.commType == CommunicationEndpoint.Communicationtype.Command)
         {
             if (state == "Connected"){
             UAVCommons.Commands.GetParameters getcmd = new UAVCommons.Commands.GetParameters();
             SendCommand(getcmd);
             }
         }
     }
 }