Beispiel #1
0
        private void sendMoveMessage(bool Sens)
        {
            PCtoEMBMessageMove Message = new PCtoEMBMessageMove();

            Message.headerMess = (byte)PCtoEMBmessHeads.MOVE;
            Message.sens       = (byte)((Sens) ? 0x01 : 0x00);
            Message.speed      = (byte)0xF0;
            Message.distance   = (byte)0xF0;

            byte[] data = Message.getBytes();
            byte   Dst  = (byte)Convert.ToUInt16(txt_idDst.Text);
            byte   Src  = (byte)Convert.ToUInt16(txt_idSrc.Text);

            TrameProtocole pTrame = g_Protocol.MakeTrame(Src, Dst, g_ProtocolCpt, data);
        }
Beispiel #2
0
        private void sendMoveMessage(bool Sens)
        {
            PCtoEMBMessageMove Message = new PCtoEMBMessageMove();
            Message.headerMess = (byte)PCtoEMBmessHeads.MOVE;
            Message.sens = (byte)((Sens) ? 0x01 : 0x00);
            Message.speed = (byte)0xF0;
            Message.distance = (byte)0xF0;

            byte[] data = Message.getBytes();
            byte Dst = (byte)Convert.ToUInt16(txt_idDst.Text);
            byte Src = (byte)Convert.ToUInt16(txt_idSrc.Text);

            TrameProtocole pTrame = g_Protocol.MakeTrame(Src, Dst, g_ProtocolCpt, data);
        }