Migrates residual Lts sources to generated rtiddsgen API

Adds NmeaManagement tests, fixes codegen includes and Qt6 SerialPort CMake target.
This commit is contained in:
berrux-dev committed 2026-09-23 12:05:37 +02:00
1 parent 5485a90385
commit 881d44f4dd
512 files changed
+6887 -6426

No files matched your search

@@ -12,22 +12,20 @@
#include <QString>
#include <QStringList>
#include <QDebug>
#include <QRandomGenerator>
Server::Server()
: QObject(nullptr)
, m_server(new QWebSocketServer(QString(), QWebSocketServer::NonSecureMode, this))
{
qsrand(time(nullptr));
QRandomGenerator::global()->seed();
}
qint64 randomBetween(qint64 min, qint64 max)
{
qint64 val = qrand(); // qrand returns int (32 bit)
val <<= 32;
val |= qrand();
return val % (max - min) + min;
return QRandomGenerator::global()->bounded(min, max);
}
@@ -156,7 +154,7 @@ bool Server::init(quint16 port)
if (!k)
limit = -1;
QStringList typesStringList(typesString.split(QLatin1Char(','), QString::SkipEmptyParts));
QStringList typesStringList(typesString.split(QLatin1Char(','), Qt::SkipEmptyParts));
qWarning() << "new request" << from << to << typesString << "limit" << limit;