-
Notifications
You must be signed in to change notification settings - Fork 0
/
stageControlXY.h
61 lines (46 loc) · 1.34 KB
/
stageControlXY.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef STAGECONTROLXY_H
#define STAGECONTROLXY_H
#include <QString>
#include <QList>
#include <iterator>
#include "globals.h"
class MarzController;
class StageControlXY : public QObject
{
Q_OBJECT
public:
StageControlXY();
~StageControlXY();
void showMessage(QString str, CONSOLECOLOURS::colour col = CONSOLECOLOURS::Information) {
emit LOGCONSOLE(str, col);
};
private:
QString m_COMPort;
MarzController* m_pMarz;
public slots:
void updatePositions(double x, double y);
void updatePositions(bool bFiducial);
void assignPort(QVector<QString> AvailablePorts, QString excludePort);
void MoveAbsolute(double x, double y, ACTIONS::action act);
void MoveRelative(double x, double y, ACTIONS::action act);
void go(double fx, double fy);
void SendCommand(QString cmd);
void SetVelocity(double velo);
void SetJoystick(bool on);
bool Connect();
void Disconnect();
void Abort();
void Calibrate();
void MeasureRange();
signals:
void ACTIONCOMPLETED(QString msg);
void CONNECTEDTOPORT(QString port);
void LOGCONSOLE(QString strText, CONSOLECOLOURS::colour col);
void UPDATEPOSITIONS(bool isFid, double x, double y);
void STAGECONNECTED(bool isXY, QString);
void reportCOMPORTS(QVector<QString> str);
void StageMovementCompleted(QString strMessage);
void finished();
void STAGEMOVED(double x, double y, ACTIONS::action act);
};
#endif