public override QcMessage EmitTxMessage(RunMode OperationMode) { if (!Datagram.IsEmittingRunMode(OperationMode) && OperationMode != RunMode.Paused) { return(new QcMessage() { Command = TxMessage.Command, Data = TxMessage.Data, Type = QcPacketType.NoMessage, MotorAddress = TxMessage.MotorAddress, Psw = TxMessage.Psw }); } else if (DateTime.Now >= NextPoll) { Controller.ColorReport("Emit Loop Poll", ConsoleColor.Cyan, ConsoleColor.DarkBlue); NextPoll = DateTime.Now.AddMilliseconds(35); Emitted = true; return(TxMessage); } else { return(new QcMessage() { Command = TxMessage.Command, MotorAddress = TxMessage.MotorAddress, Type = QcPacketType.NoMessage, Psw = new List <QcPsw>(), Data = new List <int>() }); } }