示例#1
0
文件: MIP.cs 项目: uwb-robot-ar/EZ_B
        public void Connect()
        {
            if (_ezb.EZBType != EZB.EZ_B_Type_Enum.ezb4)
            {
                return;
            }

            Disconnect();

            if (!_ezb.IsConnected)
            {
                return;
            }

            if (_bw == null)
            {
                _bw         = new EZBGWorker("MIP Controller");
                _bw.DoWork += _bw_DoWork;
            }

            Init(UART_PORT);

            if (_bw.IsBusy)
            {
                _bw.RunWorkerAsync();
            }
        }
示例#2
0
        /// <summary>
        /// Create an instance of the AutoPosition Control
        /// </summary>
        public HT16K33Animator(EZB ezb, string name)
        {
            Name = name;

            _ezb = ezb;

            _ht = new HT16K33(ezb);

            _tf                     = new EZBGWorker(string.Format("HT16K33 Animator for {0}", name));
            _tf.DoWork             += _tf_DoWork;
            _tf.RunWorkerCompleted += _tf_RunWorkerCompleted;
        }
示例#3
0
        /// <summary>
        /// Create an instance of the AutoPosition Control
        /// </summary>
        public RGBAnimator(EZB ezb, string name)
        {
            Name = name;

            _ezb = ezb;

            _eyes = new RGBEyes(_ezb);

            _tf                     = new EZBGWorker(string.Format("RGB Animator for: {0}", name));
            _tf.DoWork             += _tf_DoWork;
            _tf.RunWorkerCompleted += _tf_RunWorkerCompleted;
        }