/// <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); }
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); } } } }
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); } }
public void EventRecieved(CommunicationEndpoint source, UAVParameter arg) { this.source = source; this.arg = arg; }