添加管控软件和相机的通讯

This commit is contained in:
lidg
2026-10-27 22:14:53 +08:00
parent c8cd533d9b
commit 069eb902ed
21 changed files with 572 additions and 26 deletions
+7
View File
@@ -23,6 +23,7 @@
#include <QTableWidgetItem>
#include <QAbstractItemView>
#include <QThread>
#include <QScopeGuard>
#include <QTimer>
#include <limits>
#include <algorithm>
@@ -180,6 +181,9 @@ void YoloPanel::updateStates()
void YoloPanel::onCaptureStereoDataset()
{
if(m_busy||m_resourceBlocked)return;
auto release=qScopeGuard([this]{m_busy=false;updateStates();emit busyChanged(false);});
m_busy=true;emit busyChanged(true);
if (!m_cameraManager ||
!m_cameraManager->isConnected(CameraManager::LEFT) ||
!m_cameraManager->isConnected(CameraManager::RIGHT)) {
@@ -308,6 +312,9 @@ void YoloPanel::onCaptureStereoDataset()
void YoloPanel::onCaptureStereoPair()
{
if(m_busy||m_resourceBlocked)return;
auto release=qScopeGuard([this]{m_busy=false;updateStates();emit busyChanged(false);});
m_busy=true;emit busyChanged(true);
if (!m_cameraManager ||
!m_cameraManager->isConnected(CameraManager::LEFT) ||
!m_cameraManager->isConnected(CameraManager::RIGHT)) {