public RobotTask(ControlForm gui, BluetoothController link)
        {
            this.gui = gui;
            this.link = link;

            this.worker = new BackgroundWorker();
            this.worker.DoWork += new DoWorkEventHandler(run);
            this.worker.ProgressChanged += new ProgressChangedEventHandler(guiUpdate);
            this.worker.WorkerReportsProgress = true;
        }
        public BluetoothController(ControlForm master)
        {
            this.bgWorker = new BackgroundWorker();
            this.bgWorker.DoWork += new DoWorkEventHandler(readLoop);
            this.bgWorker.ProgressChanged += new ProgressChangedEventHandler(readerUpdate);
            this.bgWorker.WorkerReportsProgress = true;
            this.gui = master;

            waitRequests = new List<WaitRequest>();
            queue = new List<BluetoothPacket>();
        }
 public RobotMazeTask(ControlForm gui, CalibrationControl calibration, BluetoothController link)
     : base(gui, link)
 {
     this.calibration = calibration;
 }