示例#1
0
 public virtual void UAV_CommunicationStatusChanged(CommunicationEndpoint source, string state)
 {
     if (this.CommunicationStatusChanged != null)
     {
         this.CommunicationStatusChanged(this, source, state);
     }
 }
示例#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);
             }
         }
     }
 }
示例#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);
        }
示例#4
0
 void currentUAV_DataArrived(UAVCommons.CommunicationEndpoint source, UAVCommons.UAVParameter arg)
 {
     LoadDatafromAHRS();
 }
示例#5
0
 public virtual void UAV_CommunicationStatusChanged(CommunicationEndpoint source, string state)
 {
     if (this.CommunicationStatusChanged != null) this.CommunicationStatusChanged(this, source, state);
 }
示例#6
0
 public void UAVBase_CommunicationStatusChanged(UAVBase source, CommunicationEndpoint arg, string state)
 {
 }
示例#7
0
 public UDPDataClient(string adr, int port,CommunicationEndpoint.Communicationtype mode)
     : base(adr, port)
 {
     this.mode = mode;
 }
示例#8
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);
 }
示例#9
0
 public void UAVBase_CommunicationStatusChanged(UAVBase source, CommunicationEndpoint arg, string state)
 {
 }