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.
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
#pragma once
|
|
#include <vector>
|
|
#include <string>
|
|
#include "layserDefine.h"
|
|
//#include "GlobalDefine.h"
|
|
#include "CommMgr.h"
|
|
#include "MarkCtrl.h"
|
|
|
|
class _declspec(dllexport) LayserManager
|
|
{
|
|
public:
|
|
LayserManager();
|
|
~LayserManager();
|
|
|
|
public:
|
|
void SetMarkParam(float ms,
|
|
float mms,
|
|
long tcf,
|
|
long tch,
|
|
long tof,
|
|
long toh,
|
|
long dr_time,
|
|
float laserfre,
|
|
float laserpower);
|
|
void StartMark(std::vector<std::vector<Dbxy2>>& MarkCoord);
|
|
void StartMarkSemi(std::vector<std::vector<Dbxy2>>& MarkCoord);
|
|
|
|
void OpenLaser(bool isOpen);
|
|
void SetQFreq(double qFreq);
|
|
void SetEFreq(double qFreq);
|
|
void TestMarkSemi(std::vector<std::vector<Dbxy2>>& MarkCoord, int pauseDelay, int pauseFirstDelay);
|
|
void InitLaser();
|
|
void UnInitLaser();
|
|
|
|
|
|
bool SendCommand(std::string& order);
|
|
bool CheckResponse(std::string& returnStr);
|
|
CCommMgr m_ComMgr;
|
|
int m_Com = 1;//通信用com 口编号
|
|
int m_nComBaduRate = 115200;
|
|
|
|
double m_su = 1.3457;//振镜步长原始值1.4041 现在值1.4418 1.3457,1.3057
|
|
float m_ms = 100;//标刻速度mm/s
|
|
float m_mms = 500;//空移速度mm/s
|
|
long m_tcf = 1;//关激光前延时us
|
|
long m_tch = 341;//关激光后延时us
|
|
long m_tof = 341;//开激光前延时us
|
|
long m_toh = 1;//开激光后延时us
|
|
long m_dr_time = 30;//拐点延时 us
|
|
float m_laserfre = 30;//激光频率khz
|
|
float m_laserpower = 10;//激光功率
|
|
float m_maxlaserpower = 100;//激光最大功率
|
|
};
|
|
|