You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
969 B
C++

#pragma once
// CDlgCollectPluseWidth 对话框
#include "LaserDevice.h"
class CDlgCollectPluseWidth : public CDialog
{
DECLARE_DYNAMIC(CDlgCollectPluseWidth)
public:
CDlgCollectPluseWidth(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgCollectPluseWidth();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_COLLECT_PLUSE_WIDTH_DLG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedCollectPluseStart();
public:
virtual BOOL OnInitDialog();
private:
void CoolectPluseWidthByCurrect();
void CoolectPluseWidthByDimmerAng();
private:
CSetMainLaserPar m_SetLaserPar;
public:
// 最大采集电流
double m_lfMaxLaserCurrect;
// 脉宽采集电流步长
double m_lfLaserCurrectStep;
// 自适应后脉宽采集时间
int m_nPluseWitdhCollectTime;
double m_lfDimmerAng1;
double m_lfDimmerAng2;
double m_lfDimmerAngStep;
double m_lfMaxDimmerAng;
};