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