Migrates EffectShow and AssetManagement to generated rtiddsgen API
Converts accessor calls to plain member access across esc and asm services.
This commit is contained in:
39 files changed
+818
-818
No files matched your search
+34
-34
@@ -63,9 +63,9 @@ void HandlerTabData::effectShowVehicleStatusRequest(int equipmentNumber, int par
|
||||
DEBUG_LOG(m_logger) << "Trigger Status Request " << equipmentNumber << ' ' << participantId;
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertStatusRequest());
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertStatusRequest();
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
|
||||
} // end of onVehicleStatusStatusRequest()
|
||||
@@ -75,9 +75,9 @@ void HandlerTabData::relocationOrder(int equipmentNumber, int participantId, con
|
||||
DEBUG_LOG(m_logger) << "Trigger Relocation Order " << equipmentNumber << ' ' << participantId;
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertRelocationOrder(relocationOrder));
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertRelocationOrder(relocationOrder);
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
} // end of relocationOrder()
|
||||
//=============================================================================
|
||||
@@ -85,26 +85,26 @@ void HandlerTabData::effectShowOrder(int equipmentNumber, int participantId, con
|
||||
{
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertEffectShowOrder(effectShowOrder));
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertEffectShowOrder(effectShowOrder);
|
||||
|
||||
Core::GeoPosition2D posCenter = effectShowOrder.centerPosition;
|
||||
Core::GeoPosition2D posLl = effectShowOrder.lowerLeftPosition;
|
||||
DEBUG_LOG(m_logger) << "Trigger Effect Show Order " << equipmentNumber << ' ' << participantId
|
||||
<< "\n idEffectShow " << effectShowOrder.idEffectShow
|
||||
<< "\n startTime " << effectShowOrder.startTime
|
||||
<< "\n centerPosition " << LtsCoordTrans::mgrsFromGeographic(posCenter.lon(), posCenter.lat())
|
||||
<< "\n centerPosition " << LtsCoordTrans::mgrsFromGeographic(posCenter.lon, posCenter.lat)
|
||||
<< "\n areaDepth " << effectShowOrder.areaDepth
|
||||
<< "\n areaWidth " << effectShowOrder.areaWidth
|
||||
<< "\n rotation " << effectShowOrder.rotation
|
||||
<< "\n lowerLeftPosition " << LtsCoordTrans::mgrsFromGeographic(posLl.lon(), posLl.lat())
|
||||
<< "\n lowerLeftPosition " << LtsCoordTrans::mgrsFromGeographic(posLl.lon, posLl.lat)
|
||||
<< "\n numOfVolley " << int(effectShowOrder.numOfVolley)
|
||||
<< "\n shotsPerVolley " << int(effectShowOrder.shotsPerVolley)
|
||||
<< "\n typeOfAmmunition " << int(effectShowOrder.typeOfAmmunition)
|
||||
<< "\n duration " << effectShowOrder.duration
|
||||
<< "\n name " << effectShowOrder.name
|
||||
<< "\n payload" << plText(out.payload());
|
||||
<< "\n payload" << plText(out.payload);
|
||||
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
} // end of effetShowOrder()
|
||||
@@ -114,9 +114,9 @@ void HandlerTabData::effectShowStop(int equipmentNumber, int participantId, cons
|
||||
DEBUG_LOG(m_logger) << "Trigger Effect Show Stop " << equipmentNumber << ' ' << participantId;
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertEffectShowStop(idEffectShow));
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertEffectShowStop(idEffectShow);
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
} // end of effectShowStop()
|
||||
//=============================================================================
|
||||
@@ -124,14 +124,14 @@ void HandlerTabData::effectShowContinue(int equipmentNumber, int participantId,
|
||||
{
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertEffectShowContinue(effectShowContinue));
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertEffectShowContinue(effectShowContinue);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Trigger Effect Show Continue " << equipmentNumber << ' ' << participantId
|
||||
<< "\n idEffectShow " << effectShowContinue.idEffectShow
|
||||
<< "\n executionTime " << effectShowContinue.executionTime
|
||||
<< "\n payload" << plText(out.payload());
|
||||
<< "\n payload" << plText(out.payload);
|
||||
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
} // end of effectShowContinue()
|
||||
@@ -140,14 +140,14 @@ void HandlerTabData::retractOrder(int equipmentNumber, int participantId, const
|
||||
{
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertOrderRetract(retractOrder));
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertOrderRetract(retractOrder);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Trigger Retract Order " << equipmentNumber << ' ' << participantId
|
||||
<< "\n orderType " << retractOrder.orderType
|
||||
<< "\n id " << retractOrder.id
|
||||
<< "\n payload" << plText(out.payload());
|
||||
<< "\n payload" << plText(out.payload);
|
||||
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
} // end of retractOrder()
|
||||
@@ -155,16 +155,16 @@ void HandlerTabData::retractOrder(int equipmentNumber, int participantId, const
|
||||
void HandlerTabData::meteoData(int equipmentNumber, int participantId, const MeteoDataManagement::MeteoData &meteoData)
|
||||
{
|
||||
TrainingAreaBase::SendFireSmokeMarkerDataRequest out;
|
||||
out.equipmentNumber(equipmentNumber);
|
||||
out.participantId(participantId);
|
||||
out.payload(ConvertToTab::convertMeteoData(meteoData));
|
||||
out.equipmentNumber = equipmentNumber;
|
||||
out.participantId = participantId;
|
||||
out.payload = ConvertToTab::convertMeteoData(meteoData);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Trigger Meteo data " << equipmentNumber << ' ' << participantId
|
||||
<< "\n temperature " << meteoData.temperature()
|
||||
<< "\n humidity " << meteoData.humidity()
|
||||
<< "\n pressure " << meteoData.pressure()
|
||||
<< "\n windDirection " << meteoData.windDirection()
|
||||
<< "\n payload" << plText(out.payload());
|
||||
<< "\n temperature " << meteoData.temperature
|
||||
<< "\n humidity " << meteoData.humidity
|
||||
<< "\n pressure " << meteoData.pressure
|
||||
<< "\n windDirection " << meteoData.windDirection
|
||||
<< "\n payload" << plText(out.payload);
|
||||
|
||||
m_mainHandler->dds()->ftcTab()->sendFireSmokeMarkerDataRequest(out, this);
|
||||
} // end of
|
||||
@@ -182,7 +182,7 @@ void HandlerTabData::onFireSmokeMarkerDataChanged(const TrainingAreaBase::FireSm
|
||||
if (modType == DataModification::eRemoved)
|
||||
return;
|
||||
|
||||
DEBUG_LOG(m_logger) << "Got Fire Smoke Marker " << data.sampleTime();
|
||||
DEBUG_LOG(m_logger) << "Got Fire Smoke Marker " << data.sampleTime;
|
||||
switch (ConvertFromTab::isTelegram(data))
|
||||
{
|
||||
case ConvertFromTab::RxTelegram_e::VehicleStatus:
|
||||
@@ -225,7 +225,7 @@ void HandlerTabData::onFireSmokeMarkerDataChanged(const TrainingAreaBase::FireSm
|
||||
//-----------------------------------------------------------------------------
|
||||
void HandlerTabData::publishVehicleStatus(const EffectShowManagement::EffectShowVehicleStatus &vehicleStatus)
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "Vehicle Status published esmParticipantId: " << vehicleStatus.esmParticipantId() << ' ' << vehicleStatus.operational();
|
||||
DEBUG_LOG(m_logger) << "Vehicle Status published esmParticipantId: " << vehicleStatus.esmParticipantId << ' ' << vehicleStatus.operational;
|
||||
m_mainHandler->dds()->dts()->publish(vehicleStatus);
|
||||
} // end of publishVehicleStatus()
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -235,7 +235,7 @@ void HandlerTabData::sendAdlerFqFb(const int aesId)
|
||||
DEBUG_LOG(m_logger) << "Send Adler Feuerbereitschaft";
|
||||
TrainingAreaBase::AdlerFqFbRequest out;
|
||||
|
||||
out.aesItemId(aesId);
|
||||
out.aesItemId = aesId;
|
||||
m_mainHandler->dds()->ftcTab()->adlerFqFbRequest(out, this);
|
||||
}
|
||||
//=============================================================================
|
||||
|
||||
Reference in new issue
Block a user