Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Proxies/TrainingAreaBase/Plugins/UAS/uav_ia.cpp
T

25 lines
505 B
C++
Executable File

#include "uav_ia.h"
#include "logger.h"
#include <TmsIfAdapter/uav_commander.h>
namespace UAS
{
UAVInterfaceAdapter::UAVInterfaceAdapter(UAVInterfaceAdapterConfig uavConfig, UAVCommander *commander)
: m_config(std::move(uavConfig))
, m_commander(commander)
, m_logger(getLogger(QStringLiteral("UAVInterfaceAdapter.%1").arg(m_config.m_uasId)))
{}
UAVInterfaceAdapter::~UAVInterfaceAdapter()
{
DEBUG_LOG(m_logger) << "terminating IA for UAV - " << (quintptr)this;
delete m_commander;
}
}