public static PartLocation UpCamera_Calibration(CameraView cv, double moveDistance) { var cnc = Global.Instance.cnc; cv.SetUpCameraFunctionSet("Needle"); // move to upcamera position cnc.Zup(); Global.GoTo("Up Camera"); cnc.Zdown(Settings.Default.focus_height, true); // do calibration var ret = DoCameraCalibration(cv.upVideoProcessing, new PartLocation(moveDistance, moveDistance)); cnc.Zup(); cv.UpCameraReset(); return ret; }
public static PartLocation UpCamera_Calibration(CameraView cv, double moveDistance) { var cnc = Global.Instance.cnc; cv.SetUpCameraFunctionSet("Needle"); // move to upcamera position cnc.Zup(); Global.GoTo("Up Camera"); cnc.Zdown(Settings.Default.focus_height, true); // do calibration var ret = DoCameraCalibration(cv.upVideoProcessing, new PartLocation(moveDistance, moveDistance)); cnc.Zup(); cv.UpCameraReset(); return(ret); }
public static void UpCamera_MultiCalibration(CameraView cv, double moveDistance) { var cnc = Global.Instance.cnc; cv.SetUpCameraFunctionSet("Needle"); // move to upcamera position for (int z = 0; z < 30; z += 5) { Global.GoTo("Up Camera"); cnc.ZGuardOff(); cnc.CNC_Z(z); var ret = DoCameraCalibration(cv.upVideoProcessing, new PartLocation(moveDistance, .1)); Global.Instance.mainForm.ShowSimpleMessageBox(String.Format("z={0} dx={1} dy={2}", z, ret.X, ret.Y)); } cnc.Zup(); cv.UpCameraReset(); }
public static void UpCamera_MultiCalibration(CameraView cv, double moveDistance) { var cnc = Global.Instance.cnc; cv.SetUpCameraFunctionSet("Needle"); // move to upcamera position for (int z = 0; z < 30; z += 5) { Global.GoTo("Up Camera"); cnc.ZGuardOff(); cnc.CNC_Z(z); var ret = DoCameraCalibration(cv.upVideoProcessing, new PartLocation(moveDistance, .1)); Global.Instance.mainForm.ShowSimpleMessageBox(String.Format("z={0} dx={1} dy={2}", z, ret.X, ret.Y)); } cnc.Zup(); cv.UpCameraReset(); }