Пример #1
0
        public static MessageProtocol createMoveMessage(bool bAvant,byte vitesse,byte distance)
        {
            PCtoEMBMessageMove Message = new PCtoEMBMessageMove();
            Message.headerMess = (byte)PCtoEMBmessHeads.MOVE;
            Message.sens = (byte)((bAvant) ? 0x00 : 0x01);
            Message.speed = vitesse;
            Message.distance = distance;

            return Message;
        }
Пример #2
0
        static public MessageProtocol createMoveMessage(bool bAvant, byte vitesse, byte distance)
        {
            PCtoEMBMessageMove Message = new PCtoEMBMessageMove();

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

            return(Message);
        }