checking problem with connecting.

This commit is contained in:
Blake Leverington 2023-09-12 16:34:13 +02:00
parent f80b78e293
commit 89258a816f
2 changed files with 3 additions and 9 deletions

View File

@ -60,12 +60,6 @@ void EventBuilder::onNewData(DataReceiver* receiver)
//************ TODO ************ //************ TODO ************
//Here we can do something more with the complete frame //Here we can do something more with the complete frame
// I probably want to find the position and focus with the linear regression algorithm, but first, just send data to the udpserver to test. // I probably want to find the position and focus with the linear regression algorithm, but first, just send data to the udpserver to test.
//currentFrame[dev_nr].sensor_data[ch]
//currentFrame is BufferData
// unsigned short* sensor_data;
//ToDo: //ToDo:
//1. Background subtraction. //1. Background subtraction.
@ -114,11 +108,11 @@ void EventBuilder::onNewData(DataReceiver* receiver)
//log data //log data
if (loggingData) logDataToFile(); if (loggingData) logDataToFile();
HIT_ANALYSE_V2 hit_analyse_v2;//create the object //HIT_ANALYSE_V2 hit_analyse_v2;//create the object
QString dataString = hit_analyse_v2.analyseBeamData(currentFrame); // QString dataString = hit_analyse_v2.analyseBeamData(currentFrame);
// Call sendData method of the UDP server // Call sendData method of the UDP server
//QString dataString = QString::number(intensity) + ',' + QString::number(position) + ',' + QString::number(focus); QString dataString = QString::number(intensity) + ',' + QString::number(position) + ',' + QString::number(focus);
QByteArray data = dataString.toUtf8(); QByteArray data = dataString.toUtf8();
udpServer.sendData(data); udpServer.sendData(data);

Binary file not shown.