2 Commits
1.8.4 ... 1.8.6

Author SHA1 Message Date
a7fd9e4fa9 添加3个升降桌 2025-03-06 19:16:21 +08:00
5af6a039c2 x马达扫描速度接受小数 2025-02-27 14:18:02 +08:00
5 changed files with 84 additions and 24 deletions

View File

@ -178,7 +178,8 @@ HPPA::HPPA(QWidget *parent)
connect(this->ui.ymotor_backward_btn, SIGNAL(released()), this, SLOT(onyMotorStop())); connect(this->ui.ymotor_backward_btn, SIGNAL(released()), this, SLOT(onyMotorStop()));
//<2F>ٶ<EFBFBD> //<2F>ٶ<EFBFBD>
QRegExp rx("\\d{0,3}[1-9]$"); //QRegExp rx("\\d{0,3}.[1-9]$");
QRegExp rx("^\\d+(\\.\\d+)?$");
ui.xmotor_speed_lineEdit->setValidator(new QRegExpValidator(rx)); ui.xmotor_speed_lineEdit->setValidator(new QRegExpValidator(rx));
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD> //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>

View File

@ -9,7 +9,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>756</width> <width>523</width>
<height>463</height> <height>463</height>
</rect> </rect>
</property> </property>
@ -25,7 +25,7 @@
<rect> <rect>
<x>90</x> <x>90</x>
<y>250</y> <y>250</y>
<width>578</width> <width>341</width>
<height>134</height> <height>134</height>
</rect> </rect>
</property> </property>
@ -70,7 +70,7 @@
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>版本1.8.4</string> <string>版本1.8.6</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">

View File

@ -12,6 +12,10 @@ adjustTable::adjustTable(QWidget *parent)
connect(ui.objective_table2_up_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Up_btn())); connect(ui.objective_table2_up_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Up_btn()));
connect(ui.objective_table2_down_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Down_btn())); connect(ui.objective_table2_down_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Down_btn()));
connect(ui.objective_table2_stop_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Stop_btn())); connect(ui.objective_table2_stop_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Stop_btn()));
connect(ui.objective_table252_up_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable252Up_btn()));
connect(ui.objective_table252_down_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable252Down_btn()));
connect(ui.objective_table252_stop_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable252Stop_btn()));
} }
adjustTable::~adjustTable() adjustTable::~adjustTable()
@ -63,3 +67,21 @@ void adjustTable::onObjectivTable2Stop_btn()
QString xx = "http://192.168.1.254/stopnow"; QString xx = "http://192.168.1.254/stopnow";
getRequest(xx); getRequest(xx);
} }
void adjustTable::onObjectivTable252Up_btn()
{
QString xx = "http://192.168.1.252/set_up";
getRequest(xx);
}
void adjustTable::onObjectivTable252Down_btn()
{
QString xx = "http://192.168.1.252/set_down";
getRequest(xx);
}
void adjustTable::onObjectivTable252Stop_btn()
{
QString xx = "http://192.168.1.252/stopnow";
getRequest(xx);
}

View File

@ -24,6 +24,10 @@ public Q_SLOTS:
void onObjectivTable2Down_btn(); void onObjectivTable2Down_btn();
void onObjectivTable2Stop_btn(); void onObjectivTable2Stop_btn();
void onObjectivTable252Up_btn();
void onObjectivTable252Down_btn();
void onObjectivTable252Stop_btn();
private: private:
Ui::adjustTableClass ui; Ui::adjustTableClass ui;

View File

@ -6,33 +6,66 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>348</width> <width>687</width>
<height>194</height> <height>389</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>adjustTable</string> <string>adjustTable</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QGroupBox" name="groupBox_8">
<property name="title">
<string>252号升降台</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="0" column="0">
<widget class="QPushButton" name="objective_table252_up_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>上升</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="objective_table252_down_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>下降</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="objective_table252_stop_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>停止</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox_7"> <widget class="QGroupBox" name="groupBox_7">
<property name="title"> <property name="title">
<string>1号升降台</string> <string>253号升降台</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_11"> <layout class="QGridLayout" name="gridLayout_11">
<item row="0" column="0"> <item row="0" column="0">
@ -77,10 +110,10 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="2">
<widget class="QGroupBox" name="groupBox_6"> <widget class="QGroupBox" name="groupBox_6">
<property name="title"> <property name="title">
<string>2号升降台</string> <string>254号升降台</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_9"> <layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0"> <item row="0" column="0">