-
Notifications
You must be signed in to change notification settings - Fork 0
/
MarzController.h
57 lines (40 loc) · 1.01 KB
/
MarzController.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
#ifndef MARZCONTROLLER_H
#define MARZCONTROLLER_H
#include <QString>
#include "TANGO DLL C++ Header Files\Tango.h"
class StageControlXY;
class MarzController
{
public:
MarzController(StageControlXY* pTSM);
MarzController();
~MarzController();
int checkForDLL();
bool connectToPort(QString port);
void disconnect();
void getPosition(double& x, double& y);
void reportPosition(QString functionCall);
void MoveRelative(double x, double y);
void moveAbsoluteSingleAxis(int axis, double distance);
void moveAsolute(double x, double y);
void mouseMove(double x, double y);
void setVelocity(double velo);
void setJoystick(bool on);
void calibrateXY();
void measureRangeXY();
void abortXY();
void sendCommand(QString cmd);
void setUpErrorStrings();
const char* getDLLError(int err);
void calibrateZ();
void measureRangeZ();
private:
CTango* m_pTango;
QString m_COMPortXY;
StageControlXY* m_pTSM;
// port identifier
int m_portXY;
BOOL m_flag;
const char* tango_error_strings[4114];
};
#endif