Exemple #1
0
        public NXTProtocol(object s, NXTStreamType stype)
        {
            stream     = s;
            streamType = stype;

            cmdThread = new Thread(CommandWorker);

            lsGetStatusDelegate  = null;
            lsReadDelegate       = null;
            ultrasonicDelegate   = null;
            batteryLevelDelegate = null;
            getVersionDelegate   = null;
            getOutputDelegate    = null;
            getInputDelegate     = null;
            messageReadDelegate  = null;
            keepAliveDelegate    = null;
        }
Exemple #2
0
        public NXTProtocol(object s, NXTStreamType stype)
        {
            stream = s;
            streamType = stype;

            cmdThread = new Thread(CommandWorker);

            lsGetStatusDelegate = null;
            lsReadDelegate = null;
            ultrasonicDelegate = null;
            batteryLevelDelegate = null;
            getVersionDelegate = null;
            getOutputDelegate = null;
            getInputDelegate = null;
            messageReadDelegate = null;
            keepAliveDelegate = null;
        }