private void CreateSencor() { if (lmc301 == null) { lmc301 = new LMCSensor(); } lmc301.CreatePort(comboBox1.Text); }
/// <summary> /// 构造器 /// </summary> /// <param name="agPortName"></param> /// <param name="lsPoatName"></param> public BaseMeas(LMCLaserSensor.LMCSensor lsSensor, BladePitchAngle.CompassModule agSensor) { lmc301 = lsSensor; cm = agSensor; }