Revize 681d1a97
Přidáno uživatelem Jakub Hejman před téměř 4 roky(ů)
deltarobot/mainwindow.cpp | ||
---|---|---|
1 | 1 |
#include "mainwindow.h" |
2 | 2 |
#include "curvedialog.h" |
3 | 3 |
#include "infodialog.h" |
4 |
#include "curvedataserver.h" |
|
4 | 5 |
#include "selectpatientdlg.h" |
5 | 6 |
#include "ui_mainwindow.h" |
6 | 7 |
#include <QModbusTcpClient> |
... | ... | |
93 | 94 |
|
94 | 95 |
MainWindow::MainWindow(QWidget *parent) : |
95 | 96 |
QMainWindow(parent), |
96 |
ui(new Ui::MainWindow) |
|
97 |
ui(new Ui::MainWindow), |
|
98 |
cdServer(new CurveDataServer) |
|
97 | 99 |
{ |
98 | 100 |
ui->setupUi(this); |
99 | 101 |
|
100 | 102 |
mbClient = new QModbusTcpClient(this); |
103 |
|
|
101 | 104 |
pendingRead = pendingWrite = lastPacket = initStep = bSpeedUpdated = false; |
102 | 105 |
calcCurvePoints[0] = calcCurvePoints[1] = staticSpherePos = spherePos = QVector3D(0,0,0); |
103 | 106 |
dirArrow = QVector3D(0,0,0); |
... | ... | |
265 | 268 |
} |
266 | 269 |
delete db; |
267 | 270 |
delete ui; |
271 |
delete cdServer; |
|
268 | 272 |
} |
269 | 273 |
|
270 | 274 |
//! Připojit/Odpojit modbus server |
... | ... | |
1067 | 1071 |
connectionGuard->restart(); |
1068 | 1072 |
} |
1069 | 1073 |
#endif |
1074 |
cdServer->sendApplicatorPoint(spherePos.x(), spherePos.y(), spherePos.z()); |
|
1070 | 1075 |
} |
1071 | 1076 |
|
1072 | 1077 |
//! Příjem dat ze stroje |
Také k dispozici: Unified diff
Re #8629 - Server skeleton implementation