Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
/*
* @RDE_HEADER@
* Simulate players
* $Id$
* $HeadURL$
* $Author$
* Created by Hanna E. Rathje, SLTE, 2022-03-29
*/
#pragma once
#include <NGLLogger/INGLLogger.h>
#include <QObject>
#include <QPointF>
namespace WlsRandomPositions
{
class SimulatedPlayer : public QObject
{
Q_OBJECT
public:
SimulatedPlayer(int equipNo, qint64 mac, int msecs, int jitter = 0, double maxDistance = 0.0, QObject *parent = nullptr);
void start();
signals:
void sendInitTelegram(const QString &macAddress, const QByteArray &msg);
void sendPositionTelegram(const QString &macAddress, QPointF pos, double height);
private slots:
void onTimerTimeout();
private:
static QString toMacString(qint64 mac);
int m_equipNo;
QString m_macAddress;
int m_msecs;
int m_jitter;
double m_maxDistance;
QPair<QPointF,double> m_pos;
NGL::INGLLogger &m_logger;
};
} // Namespace WlsRandomPositions