Migrates remaining services and plugins to generated rtiddsgen API
Converts accessor calls to plain member access across the residual service set.
This commit is contained in:
104 files changed
+2424
-2430
No files matched your search
+30
-30
@@ -122,14 +122,14 @@ void TgtTests::tryCreateShootbackArea()
|
||||
{
|
||||
ShootbackAreaModifyRequest request;
|
||||
|
||||
request.id(0); // force create
|
||||
request.name("Test ShootbackArea");
|
||||
request.id = 0; // force create
|
||||
request.name = "Test ShootbackArea";
|
||||
double lon = 0.15530364;
|
||||
double lat = 0.92601523;
|
||||
request.position().lon(lon);
|
||||
request.position().lat(lat);
|
||||
request.width(100);
|
||||
request.height(100);
|
||||
request.position.lon = lon;
|
||||
request.position.lat = lat;
|
||||
request.width = 100;
|
||||
request.height = 100;
|
||||
|
||||
if (!m_ftcTgt->shootbackAreaModifyRequest(request, this))
|
||||
{
|
||||
@@ -144,8 +144,8 @@ void TgtTests::tryUpdateShootbackArea()
|
||||
{
|
||||
ShootbackAreaModifyRequest request;
|
||||
|
||||
request.id(m_shootbackAreaId); // update specific id
|
||||
request.name("Test ShootbackArea Updated");
|
||||
request.id = m_shootbackAreaId; // update specific id
|
||||
request.name = "Test ShootbackArea Updated";
|
||||
|
||||
if (!m_ftcTgt->shootbackAreaModifyRequest(request, this))
|
||||
{
|
||||
@@ -160,7 +160,7 @@ void TgtTests::tryRemoveShootbackArea()
|
||||
{
|
||||
ShootbackAreaRemoveRequest request;
|
||||
|
||||
request.id(m_shootbackAreaId); // remove specific id
|
||||
request.id = m_shootbackAreaId; // remove specific id
|
||||
|
||||
if (!m_ftcTgt->shootbackAreaRemoveRequest(request, this))
|
||||
{
|
||||
@@ -177,9 +177,9 @@ void TgtTests::tryRequestTechnicalState()
|
||||
|
||||
ConfigureTargetRequest request;
|
||||
|
||||
request.id(0);
|
||||
request.participantId(5);
|
||||
request.tgtCommand(TargetManagement::TgtCommand_def::RequestTechnicalState);
|
||||
request.id = 0;
|
||||
request.participantId = 5;
|
||||
request.tgtCommand = TargetManagement::TgtCommand::RequestTechnicalState;
|
||||
|
||||
if (!m_ftcTgt->configureTargetRequest(request, this))
|
||||
{
|
||||
@@ -195,11 +195,11 @@ void TgtTests::tryConfigureTargetMode()
|
||||
|
||||
ConfigureTargetRequest request;
|
||||
|
||||
request.id(0);
|
||||
request.participantId(5);
|
||||
TargetManagement::Mode mode = TargetManagement::Mode_def::ShootBack;
|
||||
request.tgtCommand(TargetManagement::TgtCommand_def::SetMode);
|
||||
request.mode(mode);
|
||||
request.id = 0;
|
||||
request.participantId = 5;
|
||||
TargetManagement::Mode mode = TargetManagement::Mode::ShootBack;
|
||||
request.tgtCommand = TargetManagement::TgtCommand::SetMode;
|
||||
request.mode = mode;
|
||||
|
||||
|
||||
if (!m_ftcTgt->configureTargetRequest(request, this))
|
||||
@@ -216,10 +216,10 @@ void TgtTests::tryConfigureTargetWeapon()
|
||||
|
||||
ConfigureTargetRequest request;
|
||||
|
||||
request.id(0);
|
||||
request.participantId(5);
|
||||
request.tgtCommand(TargetManagement::TgtCommand_def::SetWeapon);
|
||||
request.weapon(1); // AK47
|
||||
request.id = 0;
|
||||
request.participantId = 5;
|
||||
request.tgtCommand = TargetManagement::TgtCommand::SetWeapon;
|
||||
request.weapon = 1; // AK47
|
||||
|
||||
if (!m_ftcTgt->configureTargetRequest(request, this))
|
||||
{
|
||||
@@ -235,10 +235,10 @@ void TgtTests::tryCreateTargetData()
|
||||
{
|
||||
TrainingAreaBase::TargetData targetData;
|
||||
|
||||
targetData.equipmentNumber(1001);
|
||||
targetData.equipmentNumber = 1001;
|
||||
|
||||
// Shoot Back - AK 47
|
||||
targetData.payload() = {0x65, 0x01, 0x01, 0xae, 0xff, 0x00 };
|
||||
targetData.payload = {0x65, 0x01, 0x01, 0xae, 0xff, 0x00 };
|
||||
|
||||
if (!m_dtsTab->publish(targetData))
|
||||
{
|
||||
@@ -252,13 +252,13 @@ void TgtTests::tryCreateParticipant()
|
||||
{
|
||||
INFO_LOG(m_logger) << "trying to create Participant index = " << m_participantIndex;
|
||||
ParticipantManagement::Participant participant;
|
||||
participant.id(5);
|
||||
participant.superiorId(0);
|
||||
participant.inferiorIds().resize(2);
|
||||
participant.inferiorIds().at(0) = 2;
|
||||
participant.inferiorIds().at(1) = 3;
|
||||
participant.partyId(5);
|
||||
participant.equipmentNumber(1001);
|
||||
participant.id = 5;
|
||||
participant.superiorId = 0;
|
||||
participant.inferiorIds.resize(2);
|
||||
participant.inferiorIds.at(0) = 2;
|
||||
participant.inferiorIds.at(1) = 3;
|
||||
participant.partyId = 5;
|
||||
participant.equipmentNumber = 1001;
|
||||
DEBUG_LOG(m_logger) << "Publishing Participant";
|
||||
if (!m_dtsPpm->publish(participant))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user