Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -42,8 +42,8 @@ NGL_TARGET_LINK_LIBRARIES(BuildingControlBsm
PRIVATE
NGLLogger
PUBLIC
Qt5::Core
Qt5::Network
Qt6::Core
Qt6::Network
BuildingControlCommon
)
@@ -2,6 +2,7 @@
#include "bsm_socket_handler.h"
#include <utility>
#include "bsm_telegrams_base.h"
#include "bsm_telegrams_bit_timeout_request.h"
#include "bsm_telegrams_chopped_signal_flash.h"
@@ -109,7 +110,7 @@ bool SocketHandler::triggerFlashlights(int numberOfFlashes,
flash.m_choppedFlashConfig = qBound(2, choppedConfiguration, 10);
flash.m_flashDuration = flashDuration;
const QByteArray data = flash.toBytestream();
for (Socket *s : qAsConst(m_sockets))
for (Socket *s : std::as_const(m_sockets))
{
if (s->isConnected())
{
@@ -201,7 +202,7 @@ void SocketHandler::onCleanupQueue()
return;
QVector<OpticalShot> activeShots;
qint64 tNow = QDateTime::currentMSecsSinceEpoch();
for (const OpticalShot &os : qAsConst(m_lastShots))
for (const OpticalShot &os : std::as_const(m_lastShots))
{
if (os.timeStampMSec < tNow - s_opticalTimeSlot)
continue;
@@ -237,7 +238,7 @@ Socket *SocketHandler::getSocketForBsm(const QString &hostname)
{
if (ha.isLoopback())
continue;
for (Socket *s : qAsConst(m_sockets))
for (Socket *s : std::as_const(m_sockets))
{
if (s->peerAddress() == ha)
return s;
@@ -356,7 +357,7 @@ void SocketHandler::handleDirectFireSummray()
return;
int distance = 3000;
DEBUG_LOG(m_logger) << "distance=" << distance;
for (const OpticalShot &os : qAsConst(m_lastShots))
for (const OpticalShot &os : std::as_const(m_lastShots))
{
int act_distance = os.deposition1 * os.deposition1 + os.deposition2 * os.deposition2;
DEBUG_LOG(m_logger) << "act_distance=" << act_distance << " BSM-ID=" << os.id