40 lines
647 B
C++
40 lines
647 B
C++
#ifndef ROTATIONSTAGE_H
|
|
#define ROTATIONSTAGE_H
|
|
|
|
#include <QObject>
|
|
#include "LTDMC.h"
|
|
#include "QDebug"
|
|
#include "QMessageBox"
|
|
#include "thread"
|
|
|
|
class RotationStage : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RotationStage(QObject *parent = nullptr);
|
|
void open();
|
|
void aquireData();
|
|
void move(int mode, int axis,int dis);
|
|
void stop();
|
|
void close();
|
|
|
|
bool state;
|
|
|
|
|
|
|
|
|
|
signals:
|
|
void sendRotateData(QVector<double>);
|
|
|
|
private:
|
|
short rtn;
|
|
ushort CardNo;
|
|
WORD m_ConnectNum;
|
|
const char* m_strIPAdress;
|
|
|
|
std::thread *task;
|
|
};
|
|
|
|
|
|
#endif // ROTATIONSTAGE_H
|