Example #1
0
 /// <summary>
 /// Daten über das Netzwerk empfangen schreibe in datei.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="arg"></param>
 void RcUAV_DataArrived(CommunicationEndpoint source, UAVParameter arg)
 {
     UAVCommons.Logging.ParameterLogEvent logevent = new UAVCommons.Logging.ParameterLogEvent();
     logevent.name  = arg.Name;
     logevent.value = arg.Value.ToString();
     Netlog.Info(logevent);
 }
Example #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);
             }
         }
     }
 }
Example #3
0
        public override void UAV_CommunicationStatusChanged(CommunicationEndpoint source, string state)
        {
            base.UAV_CommunicationStatusChanged(source, state);
            string msg    = "";
            string target = "";

            if (source is TCPCommunicationEndPoint)
            {
                target = ((TCPCommunicationEndPoint)source).endpointAdress + ":" + ((TCPCommunicationEndPoint)source).endpointPort;
            }
            msg = source.commType.ToString() + "for " + target + "has new state " + state;



            if (NewGroundLogMessage != null)
            {
                NewGroundLogMessage(msg);
            }
        }
Example #4
0
 public void EventRecieved(CommunicationEndpoint source, UAVParameter arg)
 {
     this.source = source;
     this.arg    = arg;
 }
        public void EventRecieved(CommunicationEndpoint source, UAVParameter arg)
        {
            this.source = source;
            this.arg = arg;

        }