From 5337a40837070c9d8a5c6c35dc5b215ab807d373 Mon Sep 17 00:00:00 2001 From: tangchao0503 <735056338@qq.com> Date: Tue, 27 Jun 2023 14:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E5=8F=91=E9=80=81?= =?UTF-8?q?=20bin=20=E7=8A=B6=E6=80=81=E5=88=B0=E9=81=A5=E6=8E=A7=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Header_Files/udpserver.h | 1 + Header_Files/ximeaimager.h | 1 + Source_Files/udpserver.cpp | 15 +++++++++++++-- Source_Files/ximeaimager.cpp | 2 ++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Header_Files/udpserver.h b/Header_Files/udpserver.h index 4b4f06d..7e359ad 100644 --- a/Header_Files/udpserver.h +++ b/Header_Files/udpserver.h @@ -67,6 +67,7 @@ public slots: void sendXimeaImageStatus(int ximeaImageStatus); void sendXimeaAutoExposeMaxValueOfOneFrame(int autoExposeMaxValueOfOneFrame, double exposeTime); + void sendXimeaBinState(int spatialBin, int spectralBin); void sendXimeaImageFrameRate(double frameRate); void sendCopyFileStatus(int fileStatus); }; diff --git a/Header_Files/ximeaimager.h b/Header_Files/ximeaimager.h index cf5fd28..e1065ea 100644 --- a/Header_Files/ximeaimager.h +++ b/Header_Files/ximeaimager.h @@ -214,5 +214,6 @@ signals: void autoExposeMaxValueOfOneFrame(int, double); void frameRateSignal(double); + void binSignal(int, int); }; #endif // XIMEAIMAGER_H diff --git a/Source_Files/udpserver.cpp b/Source_Files/udpserver.cpp index 03f2f21..76b24c4 100644 --- a/Source_Files/udpserver.cpp +++ b/Source_Files/udpserver.cpp @@ -51,6 +51,7 @@ UdpServer::UdpServer() connect(m_imager, SIGNAL(ximeaImageStatus(int)),this, SLOT(sendXimeaImageStatus(int))); connect(m_imager, SIGNAL(autoExposeMaxValueOfOneFrame(int, double)),this, SLOT(sendXimeaAutoExposeMaxValueOfOneFrame(int, double))); + connect(m_imager, SIGNAL(binSignal(int, int)),this, SLOT(sendXimeaBinState(int, int))); connect(m_imager, SIGNAL(frameRateSignal(double)),this, SLOT(sendXimeaImageFrameRate(double))); connect(m_copyFile, SIGNAL(copyFileStatus(int)),this, SLOT(sendCopyFileStatus(int))); @@ -63,8 +64,6 @@ UdpServer::UdpServer() sendCopyFileStatus(0); - - std::cout<<"UdpServer::UdpServer--------:System ready!"<writeDatagram(datagram2send.data(),datagram2send.size(),m_clientIpAddress, 45455); } +void UdpServer::sendXimeaBinState(int spatialBin, int spectralBin) +{ +// std::cout<<"UdpServer::sendXimeaAutoExposeMaxValueOfOneFrame---------------------:"<< ximeaImageStatus <writeDatagram(datagram2send.data(),datagram2send.size(),m_clientIpAddress, 45455); +} + void UdpServer::sendXimeaImageFrameRate(double frameRate) { // std::cout<<"UdpServer::sendXimeaImageFrameRate---------------------:"<< ximeaImageStatus <