Exemplo n.º 1
0
        public void appendValidData(TelemetryPacket packet)
        {
            this.BeginInvoke(new EventHandler(delegate
            {
                if (packet.isFromPayload())
                {

                    String s = packet.toString();
                    rtbValidPacket.SelectionColor = Color.Blue;
                    rtbValidPacket.AppendText(s);
                    rtbValidPacket.AppendText("\n");
                }
                else
                {
                    String s = packet.toString();
                    rtbValidPacket.SelectionColor = Color.Orange;
                    rtbValidPacket.AppendText(s);
                    rtbValidPacket.AppendText("\n");
                }
            }));
        }
        private void ValidPacketAvailable(TelemetryPacket packet)
        {
            if (packet.isFromPayload()) {
                payloadTableForm.AddData(packet.toArray());
                payloadGraphForm.addPacket(packet);
                statusForm.setPayloadData(packet);
            }
            else
            {
                containerTableForm.AddData(packet.toArray());
                containerGraphForm.addPacket(packet);
                statusForm.setContainerData(packet);
            }

            telemetryForm.appendValidData(packet);
            Logger.Instance.logValid(packet);
        }