public JaguarCtrl() { simulatedJaguar = new AxDDrRobotSentinel_Simulator(); navigation = new Navigation(this); drRobotConnect = new DrRobotRobotConnection(this); drRobotConnect.connectRobot(); robotCfg = drRobotConnect.robotConfig; jaguarSetting = (RobotConfig.RobotConfigTableRow)robotCfg.RobotConfigTable.Rows[0]; InitializeComponent(); // Setup graphics for simulation SetStyle(ControlStyles.OptimizedDoubleBuffer, false); this.Paint += new System.Windows.Forms.PaintEventHandler(this.JaguarCtrl_Paint); panelGE.Visible = false; mapResolution = trackBarZoom.Value * zoomConstant; // Start Simulated Sensor Update Thread runSensorThread = true; sensorThread = new Thread(runSensorLoop); sensorThread.Start(); }
///////////////////////////////////////////////////////////////// #region form funtion public JaguarCtrl(DrRobotRobotConnection form, RobotConfig robotConfig) { drRobotConnect = form; robotCfg = robotConfig; jaguarSetting = (RobotConfig.RobotConfigTableRow)robotCfg.RobotConfigTable.Rows[0]; InitializeComponent(); }