|
|
|
|
|
#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;//ͨ<><CDA8><EFBFBD><EFBFBD>com <20>ڱ<EFBFBD><DAB1><EFBFBD>
|
|
|
|
|
|
int m_nComBaduRate = 115200;
|
|
|
|
|
|
|
|
|
|
|
|
double m_su = 1.3457;//<2F><EFBFBD><F1BEB5B2><EFBFBD>ԭʼֵ1.4041 <20><><EFBFBD><EFBFBD>ֵ1.4418 1.3457,1.3057
|
|
|
|
|
|
float m_ms = 100;//<2F><><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>mm/s
|
|
|
|
|
|
float m_mms = 500;//<2F><><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>mm/s
|
|
|
|
|
|
long m_tcf = 1;//<2F>ؼ<EFBFBD><D8BC><EFBFBD>ǰ<EFBFBD><C7B0>ʱus
|
|
|
|
|
|
long m_tch = 341;//<2F>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱus
|
|
|
|
|
|
long m_tof = 341;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ʱus
|
|
|
|
|
|
long m_toh = 1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱus
|
|
|
|
|
|
long m_dr_time = 30;//<2F>յ<EFBFBD><D5B5><EFBFBD>ʱ us
|
|
|
|
|
|
float m_laserfre = 30;//<2F><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>khz
|
|
|
|
|
|
float m_laserpower = 10;//<2F><><EFBFBD><EFBFBD><E2B9A6>
|
|
|
|
|
|
float m_maxlaserpower = 100;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
};
|
|
|
|
|
|
|