diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp
index 7c09a00..db59be4 100644
--- a/HPPA/HPPA.cpp
+++ b/HPPA/HPPA.cpp
@@ -265,6 +265,11 @@ HPPA::HPPA(QWidget *parent)
float StepAnglemar_y, Lead_y, ScaleFactor_y;
int SubdivisionMultiples_y;
configfile.getYMotorParm(StepAnglemar_y, Lead_y, SubdivisionMultiples_y, ScaleFactor_y);*/
+
+ //
+ connect(ui.objective_table_up_btn, SIGNAL(clicked()), this, SLOT(onObjectivTableUp_btn()));
+ connect(ui.objective_table_down_btn, SIGNAL(clicked()), this, SLOT(onObjectivTableDown_btn()));
+ connect(ui.objective_table_stop_btn, SIGNAL(clicked()), this, SLOT(onObjectivTableStop_btn()));
}
HPPA::~HPPA()
@@ -1713,6 +1718,24 @@ void HPPA::requestFinished(QNetworkReply* reply) {
}
}
+void HPPA::onObjectivTableUp_btn()
+{
+ QString xx = "http://192.168.1.254/set_up";
+ getRequest(xx);
+}
+
+void HPPA::onObjectivTableDown_btn()
+{
+ QString xx = "http://192.168.1.254/set_down";
+ getRequest(xx);
+}
+
+void HPPA::onObjectivTableStop_btn()
+{
+ QString xx = "http://192.168.1.254/stopnow";
+ getRequest(xx);
+}
+
void HPPA::onExit()
{
this->close();
diff --git a/HPPA/HPPA.h b/HPPA/HPPA.h
index aae701d..3776aa7 100644
--- a/HPPA/HPPA.h
+++ b/HPPA/HPPA.h
@@ -321,6 +321,10 @@ public Q_SLOTS:
void requestFinished(QNetworkReply* reply);
+ void onObjectivTableUp_btn();
+ void onObjectivTableDown_btn();
+ void onObjectivTableStop_btn();
+
signals:
void StartFocusSignal();
void StartLoopSignal();
diff --git a/HPPA/HPPA.ui b/HPPA/HPPA.ui
index a35fdd3..8686de7 100644
--- a/HPPA/HPPA.ui
+++ b/HPPA/HPPA.ui
@@ -285,7 +285,7 @@
- 3
+ 4
@@ -1682,6 +1682,52 @@
+
+
+ 升降台
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ 上升
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ 下降
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ 停止
+
+
+
+
+
@@ -1697,7 +1743,7 @@
0
0
2213
- 37
+ 23