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

@@ -209,7 +209,7 @@ void ModuleTestExplosionCluster::onAesItemViewChanged(const AesItemView &aesItem
if (modType == DataModification::eRemoved)
return;
AreaEffectSimulation::AesType::type aesType = aesItemView.aesTypeId().underlying();
AreaEffectSimulation::AesType aesType = static_cast<AreaEffectSimulation::AesType>(aesItemView.aesTypeId());
DEBUG_LOG(m_logger) << " got onAesItemViewChanged - m_data: " << m_data.id << ", aesType=" << aesType;
switch (aesType) {
@@ -219,7 +219,7 @@ void ModuleTestExplosionCluster::onAesItemViewChanged(const AesItemView &aesItem
case AreaEffectSimulation::AesType::AtExplosionClusterGunToTargetLine:
++m_counterDds.cntAtExplosionClusterGunToTargetLine;
break;
// case AreaEffectSimulation::AesType_def::AtExplosionClusterSingleExplosions:
// case AreaEffectSimulation::AesType::AtExplosionClusterSingleExplosions:
// ++m_counterDds.cntAtExplosionClusterSingleExplosions;
// m_aesItemViewSingleExplosions = aesItemView;
// break;
@@ -232,7 +232,7 @@ void ModuleTestExplosionCluster::onEffectsChanged(const Effects &effects, DataMo
{
if (modType == DataModification::eRemoved)
return;
AreaEffectSimulation::AesType::type aesType = effects.aesTypeId().underlying();
AreaEffectSimulation::AesType aesType = static_cast<AreaEffectSimulation::AesType>(effects.aesTypeId());
DEBUG_LOG(m_logger) << " got onEffectsChanged - m_data: " << m_data.id << ", aesType=" << aesType;
++m_counterDds.cntExplosionClusterEffects;
@@ -388,7 +388,7 @@ ExplosionCluster ModuleTestExplosionCluster::getEcForTneVerification(const QStri
eaData.partyId = 2;
eaData.participantId = 7;
eaData.mhPoints({Core::GeoPosition2D(0.0, 0.0)});
eaData.mhPoints = {Core::GeoPosition2D(0.0, 0.0)};
eaData.impactCount = 10;
// SubStruct FlightCurve
@@ -409,7 +409,7 @@ ExplosionCluster ModuleTestExplosionCluster::getEcForTneVerification(const QStri
qCritical() << " bottomLeft" << bottomLeft;
eaData.area.cornerBottomLeft(Core::GeoPosition(bottomLeft.x(), bottomLeft.y(), 0.0));
eaData.area.cornerBottomLeft = Core::GeoPosition(bottomLeft.x(), bottomLeft.y(), 0.0);
eaData.area.height = height;
eaData.area.width = width;
eaData.area.rotation = rot;
@@ -459,7 +459,7 @@ ExplosionCluster ModuleTestExplosionCluster::getEcFor1104(const QString &eaName)
const double rot = 0;
// 0.202561460978929 0.916110427477059 == 32U PD 76937 18655
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.202561460978929, 0.916110427477059));
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.202561460978929, 0.916110427477059);
eaData.area.height = height;
eaData.area.width = width;
eaData.area.rotation = rot;
@@ -514,7 +514,7 @@ ExplosionCluster ModuleTestExplosionCluster::getEcFor1106(const QString &eaName)
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD7696018588")); //
QPointF pos = utmPos.geographic();
eaData.area.cornerBottomLeft(Core::GeoPosition2D(pos.x(), pos.y()));
eaData.area.cornerBottomLeft = Core::GeoPosition2D(pos.x(), pos.y());
eaData.area.height = height;
eaData.area.width = width;
eaData.area.rotation = rot;
@@ -567,7 +567,7 @@ ExplosionCluster ModuleTestExplosionCluster::getEcForUBAHN(const QString &eaName
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32U PD 77154 18454")); // 32 U PD 77154 18454
QPointF pos = utmPos.geographic();
eaData.area.cornerBottomLeft(Core::GeoPosition2D(pos.x(), pos.y()));
eaData.area.cornerBottomLeft = Core::GeoPosition2D(pos.x(), pos.y());
eaData.area.height = height;
eaData.area.width = width;
eaData.area.rotation = rot;
@@ -620,7 +620,7 @@ ExplosionCluster ModuleTestExplosionCluster::getEcFor3101(const QString &eaName)
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD7722018559")); // 32 U PD 77220 18559
QPointF pos = utmPos.geographic();
eaData.area.cornerBottomLeft(Core::GeoPosition2D(pos.x(), pos.y()));
eaData.area.cornerBottomLeft = Core::GeoPosition2D(pos.x(), pos.y());
eaData.area.height = height;
eaData.area.width = width;
eaData.area.rotation = rot;
@@ -760,7 +760,7 @@ void ModuleTestExplosionCluster::setupParticipants()
const LtsCoordTrans::UtmCoordinate &utmPos =
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD7690018000")); // 32U PD 76900 18000
QPointF pos = utmPos.geographic();
req.position(Core::GeoPosition(pos.x(), pos.y(), 0.0));
req.position = Core::GeoPosition(pos.x(), pos.y(), 0.0);
INFO_LOG(m_logger) << " setSimulatedPositionRequest ...";
m_replyError = true;
@@ -780,7 +780,7 @@ void ModuleTestExplosionCluster::setupParticipants()
const LtsCoordTrans::UtmCoordinate &utmPos =
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD7600019000")); // 32U PD 76000 19000
QPointF pos = utmPos.geographic();
req.position(Core::GeoPosition(pos.x(), pos.y(), 0.0));
req.position = Core::GeoPosition(pos.x(), pos.y(), 0.0);
INFO_LOG(m_logger) << " setSimulatedPositionRequest ...";
m_replyError = true;
@@ -803,7 +803,7 @@ void ModuleTestExplosionCluster::setupParticipants()
// LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD7500018000")); // 32U PD 75000 18000
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD5000018000")); // 32U PD 50000 18000
QPointF pos = utmPos.geographic();
req_SSPF.position(Core::GeoPosition(pos.x(), pos.y(), 0.0));
req_SSPF.position = Core::GeoPosition(pos.x(), pos.y(), 0.0);
QString prop = QString(QStringLiteral("{\"angle\":0,\"distance\":25,\"distanceSets\":{\"Aufgelockert\":50,\"Geschlossen\":25},\"geometry\":\"line\"}"));
req_SSPF.formation = prop.toStdString() ;
@@ -827,7 +827,7 @@ void ModuleTestExplosionCluster::setupParticipants()
// LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD7500018000")); // 32U PD 75000 18000
LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UPD0100018000")); // 32U PD 01000 18000
QPointF pos = utmPos.geographic();
req_SSPF.position(Core::GeoPosition(pos.x(), pos.y(), 0.0));
req_SSPF.position = Core::GeoPosition(pos.x(), pos.y(), 0.0);
QString prop = QString(QStringLiteral("{\"angle\":0,\"distance\":25,\"distanceSets\":{\"Aufgelockert\":50,\"Geschlossen\":25},\"geometry\":\"line\"}"));
req_SSPF.formation = prop.toStdString() ;
@@ -2074,7 +2074,7 @@ void ModuleTestExplosionCluster::test_point_geometry_bldg_1104()
eaData.flightCurve.get().requestedRelativePeakHeight = 500;
eaData.explosionGeometry = AreaEffectSimulation::AesExplosionGeometry::EgPoint;
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705)); // !!bottomLeft!! should be interpreted at center of impact
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705); // !!bottomLeft!! should be interpreted at center of impact
// LtsCoordTrans::UtmCoordinate newTargetPosUtm_Hill = LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32U PD 77457 17613")); // 32U PD 77438 17632
// auto newPnt = newTargetPosUtm_Hill.geographic();
@@ -2134,7 +2134,7 @@ void ModuleTestExplosionCluster::test_point_geometry_bldg_1104_SMArt_Proximity()
eaData.flightCurve.get().requestedRelativePeakHeight = 500;
eaData.explosionGeometry = AreaEffectSimulation::AesExplosionGeometry::EgPoint;
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705)); // !!bottomLeft!! should be interpreted at center of impact
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705); // !!bottomLeft!! should be interpreted at center of impact
// LtsCoordTrans::UtmCoordinate newTargetPosUtm_Hill = LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32U PD 77457 17613")); // 32U PD 77438 17632
// auto newPnt = newTargetPosUtm_Hill.geographic();
@@ -2192,7 +2192,7 @@ void ModuleTestExplosionCluster::test_bldg_1104_OC()
name += QString::number(requestOC.effectStart);
requestOC.name = name.toStdString();
requestOC.area.cornerBottomLeft(Core::GeoPosition2D(0.2025, 0.91611)); // !!bottomLeft!!
requestOC.area.cornerBottomLeft = Core::GeoPosition2D(0.2025, 0.91611); // !!bottomLeft!!
requestOC.area.width = 20;
requestOC.area.height = 30;
requestOC.area.rotation = 17;
@@ -2246,7 +2246,7 @@ void ModuleTestExplosionCluster::test_point_geometry_bldg_1104_light()
eaData.chargeStruct.chargeTypeId = s_ChargeTypeId1;
eaData.explosionGeometry = AreaEffectSimulation::AesExplosionGeometry::EgPoint;
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705)); // !!bottomLeft!!
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705); // !!bottomLeft!!
eaData.area.width = 10;
eaData.area.height = 10;
eaData.area.rotation = 0;
@@ -2297,7 +2297,7 @@ void ModuleTestExplosionCluster:: test_point_geometry_bldg_1104_single_effect_on
request.element = request.name;
const QPointF impactPointF(0.20256382834808495, 0.9161105453111705);
request.impactPosition(Core::GeoPosition2D(impactPointF.x(), impactPointF.y()));
request.impactPosition = Core::GeoPosition2D(impactPointF.x(), impactPointF.y());
INFO_LOG(m_logger) << LOGFUNCTION << " requested impact position = " << LtsCoordTrans::UtmCoordinate::fromGeographic(impactPointF).mgrs();
request.chargeTypeId = 371;
@@ -2413,7 +2413,7 @@ void ModuleTestExplosionCluster::test_vulcano_bldg_1104()
eaData.flightCurve.get().dropAngle = 45;
eaData.explosionGeometry = AreaEffectSimulation::AesExplosionGeometry::EgPoint;
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705)); // !!bottomLeft!!
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705); // !!bottomLeft!!
eaData.area.width = 25;
eaData.area.height = 25;
eaData.area.rotation = 0;
@@ -2470,7 +2470,7 @@ void ModuleTestExplosionCluster::test_vulcano_bldg_1104_withTargetModify()
eaData.flightCurve.get().dropAngle = 45;
eaData.explosionGeometry = AreaEffectSimulation::AesExplosionGeometry::EgPoint;
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705)); // !!bottomLeft!!
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705); // !!bottomLeft!!
eaData.area.width = 25;
eaData.area.height = 25;
eaData.area.rotation = 0;
@@ -2574,7 +2574,7 @@ void ModuleTestExplosionCluster::test_vulcano_bldg_1104_withTargetModify2()
eaData.flightCurve.get().dropAngle = 45;
eaData.explosionGeometry = AreaEffectSimulation::AesExplosionGeometry::EgPoint;
eaData.area.cornerBottomLeft(Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705)); // !!bottomLeft!!
eaData.area.cornerBottomLeft = Core::GeoPosition2D(0.20256382834808495, 0.9161105453111705); // !!bottomLeft!!
eaData.area.width = 25;
eaData.area.height = 25;
eaData.area.rotation = 0;