예제 #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;
        }
예제 #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;
        }