add,计划采集15:

优化定时采集:界面和模型
This commit is contained in:
tangchao0503
2026-06-17 11:40:01 +08:00
parent 59abab3f5d
commit 5372a7806c
10 changed files with 102 additions and 57 deletions

View File

@ -292,12 +292,21 @@ TwoMotorControl::~TwoMotorControl()
}
void TwoMotorControl::onConnectMotor()
{
connectMotor(true);
}
void TwoMotorControl::connectMotor(bool isNotification)
{
if (getMotorsConnectionStatus())
{
QMessageBox msgBox;
msgBox.setText(QString::fromLocal8Bit("马达已连接!"));
msgBox.exec();
if (isNotification)
{
QMessageBox msgBox;
msgBox.setText(QString::fromLocal8Bit("马达已连接!"));
msgBox.exec();
}
return;
}