diff --git a/acceleration.ui b/acceleration.ui
index b2e24e1..8b6f9d3 100644
--- a/acceleration.ui
+++ b/acceleration.ui
@@ -107,7 +107,7 @@
-
- 0
+ 1
@@ -456,6 +456,9 @@
25
+
+ 1
+
-
g
@@ -553,6 +556,9 @@
25
+
+ 6
+
-
True Peak
@@ -720,6 +726,9 @@
20
+
+ 0
+
@@ -730,6 +739,9 @@
20
+
+ 0
+
@@ -740,6 +752,9 @@
20
+
+ 0
+
@@ -750,6 +765,9 @@
20
+
+ 0
+
@@ -760,6 +778,9 @@
20
+
+ 0
+
@@ -770,6 +791,9 @@
20
+
+ 0
+
diff --git a/mainwindow.cpp b/mainwindow.cpp
index c61d847..6a86380 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -237,7 +237,7 @@ void MainWindow::createMenu(const QString &rootTitle, QPushButton *parent) {
void MainWindow::createMenuSet(const QString &rootTitle, QPushButton *parent) {
// 创建主菜单
- qDebug() << "createMenu" << parent->objectName() ;
+ qDebug() << "createMenu" << parent->objectName();
QMenu *mainMenu = new QMenu(rootTitle, parent);
QAction *option = mainMenu->addAction("通道配置…");
QAction *set_points = mainMenu->addAction("触发配置…");
@@ -562,6 +562,7 @@ void MainWindow::onMenuAction_relay() {
relay_setting->setWindowModality(Qt::ApplicationModal);
relay_setting->show();
}
+
uint8_t calculate_crc(const QByteArray &data) {
uint8_t crc = 0;
for (int i = 0; i < data.size(); ++i) {
@@ -569,6 +570,7 @@ uint8_t calculate_crc(const QByteArray &data) {
}
return crc;
}
+
void MainWindow::on_pushButton_save_clicked() {
QString file_name = "";
@@ -594,12 +596,9 @@ void MainWindow::on_pushButton_save_clicked() {
}
return;
-
}
void MainWindow::on_pushButton_open_clicked() {
-
-
tsi_config_file = QFileDialog::getOpenFileName(this, tr("选择文件"), tr(""), tr("*.json"));
QFileInfo fileinfo;
fileinfo = QFileInfo(tsi_config_file);
@@ -755,7 +754,8 @@ void MainWindow::getVersion(int slot) {
m_tcpClient->waitForRead();
qDebug() << "bytesWritten: " << bytesWritten;
}
-void MainWindow::ConfigSubCard(int slot){
+
+void MainWindow::ConfigSubCard(int slot) {
slot_no = slot;
qDebug() << "slot" << slot ;
ConfigSubCardReq config_sub_card_req = { {0xAA, 0x55, 0xAA}, kConfigSubCard, 1, 0 };
diff --git a/pressure_pulsation.ui b/pressure_pulsation.ui
index 3dcbea9..6c173d8 100644
--- a/pressure_pulsation.ui
+++ b/pressure_pulsation.ui
@@ -751,6 +751,9 @@
20
+
+ 0
+
@@ -761,6 +764,9 @@
20
+
+ 0
+
@@ -771,6 +777,9 @@
20
+
+ 0
+
@@ -781,6 +790,9 @@
20
+
+ 0
+
@@ -791,6 +803,9 @@
20
+
+ 0
+
@@ -801,6 +816,9 @@
20
+
+ 0
+
diff --git a/radial_vibration.ui b/radial_vibration.ui
index 54d8bc4..e6c9874 100644
--- a/radial_vibration.ui
+++ b/radial_vibration.ui
@@ -23,7 +23,7 @@
- 2
+ 1
@@ -398,6 +398,9 @@
25
+
+ 4
+
-
g
@@ -627,6 +630,9 @@
20
+
+ 0
+
@@ -637,6 +643,9 @@
20
+
+ 0
+
@@ -647,6 +656,9 @@
20
+
+ 0
+
@@ -657,6 +669,9 @@
20
+
+ 0
+
@@ -667,6 +682,9 @@
20
+
+ 0
+
@@ -677,6 +695,9 @@
20
+
+ 0
+
@@ -955,6 +976,9 @@
25
+
+ 1
+
-
是
@@ -987,6 +1011,9 @@
25
+
+ 4
+
-
g
@@ -1191,6 +1218,9 @@
20
+
+ 0
+
@@ -1201,6 +1231,9 @@
20
+
+ 0
+
@@ -1211,6 +1244,9 @@
20
+
+ 0
+
@@ -1221,6 +1257,9 @@
20
+
+ 0
+
@@ -1231,6 +1270,9 @@
20
+
+ 0
+
@@ -1241,6 +1283,9 @@
20
+
+ 0
+
diff --git a/seismic_monitor.ui b/seismic_monitor.ui
index 5ed3f4c..2d721bf 100644
--- a/seismic_monitor.ui
+++ b/seismic_monitor.ui
@@ -430,6 +430,9 @@
16777215
+
+ 3
+
-
g
@@ -593,7 +596,7 @@
-100.000000000000000
- 20.000000000000000
+ -2.000000000000000
@@ -629,7 +632,7 @@
-100.000000000000000
- -20.000000000000000
+ -18.000000000000000
@@ -868,6 +871,9 @@
16777215
+
+ 3
+
-
g
@@ -1031,7 +1037,7 @@
-100.000000000000000
- 20.000000000000000
+ -2.000000000000000
@@ -1067,7 +1073,7 @@
-100.000000000000000
- -20.000000000000000
+ -18.000000000000000
@@ -1564,6 +1570,9 @@
16777215
+
+ 3
+
-
g
@@ -1727,7 +1736,7 @@
-100.000000000000000
- 20.000000000000000
+ -2.000000000000000
@@ -1763,7 +1772,7 @@
-100.000000000000000
- -20.000000000000000
+ -18.000000000000000
@@ -2002,6 +2011,9 @@
16777215
+
+ 3
+
-
g
@@ -2165,7 +2177,7 @@
-100.000000000000000
- 20.000000000000000
+ -2.000000000000000
@@ -2201,7 +2213,7 @@
-100.000000000000000
- -20.000000000000000
+ -18.000000000000000
diff --git a/tachometer.ui b/tachometer.ui
index b3d6611..2757b4e 100644
--- a/tachometer.ui
+++ b/tachometer.ui
@@ -39,6 +39,9 @@
+
+ true
+
40
@@ -106,7 +109,7 @@
通道3激活
- true
+ false
@@ -151,7 +154,7 @@
通道4激活
- true
+ false
@@ -213,7 +216,7 @@
50.000000000000000
- -25.000000000000000
+ -18.000000000000000
@@ -247,7 +250,7 @@
50.000000000000000
- 25.000000000000000
+ -2.000000000000000
@@ -874,7 +877,7 @@
50.000000000000000
- -25.000000000000000
+ -18.000000000000000
@@ -908,7 +911,7 @@
50.000000000000000
- 25.000000000000000
+ -2.000000000000000
@@ -1517,7 +1520,7 @@
50.000000000000000
- -25.000000000000000
+ -18.000000000000000
@@ -1551,7 +1554,7 @@
50.000000000000000
- 25.000000000000000
+ -2.000000000000000
@@ -2160,7 +2163,7 @@
50.000000000000000
- -25.000000000000000
+ -18.000000000000000
@@ -2197,7 +2200,7 @@
1.000000000000000
- 25.000000000000000
+ -2.000000000000000
@@ -2413,7 +2416,7 @@
- 490
+ 480
20
191
91
@@ -2773,7 +2776,7 @@
通道2激活
- true
+ false
diff --git a/trust.ui b/trust.ui
index 0cbdcb1..88e2bbb 100644
--- a/trust.ui
+++ b/trust.ui
@@ -430,6 +430,9 @@
25
+
+ 5
+
-
g
@@ -642,6 +645,9 @@
20
+
+ 0
+
@@ -652,6 +658,9 @@
20
+
+ 0
+
@@ -662,6 +671,9 @@
20
+
+ 0
+
@@ -672,6 +684,9 @@
20
+
+ 0
+
@@ -682,6 +697,9 @@
20
+
+ 0
+
@@ -692,6 +710,9 @@
20
+
+ 0
+
@@ -702,6 +723,9 @@
20
+
+ 0
+
@@ -712,6 +736,9 @@
20
+
+ 0
+
@@ -722,6 +749,9 @@
20
+
+ 0
+
@@ -732,6 +762,9 @@
20
+
+ 0
+
@@ -742,6 +775,9 @@
20
+
+ 0
+
@@ -752,6 +788,9 @@
20
+
+ 0
+
diff --git a/velocity.ui b/velocity.ui
index f0e8a3b..f2d49cd 100644
--- a/velocity.ui
+++ b/velocity.ui
@@ -340,6 +340,9 @@
25
+
+ 6
+
-
True Peak
@@ -410,6 +413,9 @@
25
+
+ 2
+
-
g
@@ -627,6 +633,9 @@
20
+
+ 0
+
@@ -637,6 +646,9 @@
20
+
+ 0
+
@@ -647,6 +659,9 @@
20
+
+ 0
+
@@ -657,6 +672,9 @@
20
+
+ 0
+
@@ -667,6 +685,9 @@
20
+
+ 0
+
@@ -677,6 +698,9 @@
20
+
+ 0
+