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