-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollimatorsset.h
More file actions
42 lines (29 loc) · 866 Bytes
/
collimatorsset.h
File metadata and controls
42 lines (29 loc) · 866 Bytes
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
#ifndef COLLIMATORSSET_H
#define COLLIMATORSSET_H
#include <QObject>
#include "encoder.h"
class CollimatorsSet : public QObject
{
Q_OBJECT
public:
explicit CollimatorsSet(int setID, QObject *parent = 0);
~CollimatorsSet();
int GetID();
void Update(QByteArray response);
void UpdateAllOrigins(QByteArray response);
int GetPosition(int motorID);
uint16_t GetMotorOrigin(int motorID);
uint8_t GetSteps2mm(int motorID);
void ResetMotorsData();
void ResetSteps2mm(int motorID);
private:
int id;
Encoder **motors;
QString GenerateCoordinate(const QString &coord_mm, int motorID);
private slots:
void MotorCoordinateChangedSlot(int motorID, uint16_t newCoordinate);
signals:
void MotorCoordinateChanged(int setID, int motorID, uint16_t newCoordinate);
public slots:
};
#endif // COLLIMATORSSET_H