-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmydobot.h
46 lines (36 loc) · 1010 Bytes
/
mydobot.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
#ifndef MYDOBOT_H
#define MYDOBOT_H
#include <QObject>
#include "DobotDll.h"
#include "DobotType.h"
#include "mytypes.h"
#include <QVector>
class MyDobot : public QObject
{
Q_OBJECT
public:
explicit MyDobot(QObject *parent = nullptr);
~MyDobot();
void initDobot(QByteArray IPaddress);
Pose getCurrentPosition();
void goHomeSafe();
void goHome();
void goSafe();
void goPosition(float x, float y, float z, float r);
void goPositionStraight(float x, float y, float z, float r);
void goJog(int index);
void setAirPump(int status, int direction); //status 1 off 0 on; direction 0 suck 1 push
void setOutput(uint8_t address, uint8_t level);
void setMotor(int velocity, int acceleration);
alarmState getAlarms();
void clearAlarms();
void clearQueue();
QString getName();
public slots:
private:
char deviceSN[64];
char deviceName[64];
QByteArray thisDobotIP;
Pose currentPosition, futurePosition;
};
#endif // MYDOBOT_H