Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+7
-8
@@ -15,12 +15,11 @@
|
||||
namespace OcSituationServer
|
||||
{
|
||||
|
||||
PositionConverter::PositionConverter(MainHandler *m_mainHandler)
|
||||
: m_mainHandler(m_mainHandler)
|
||||
PositionConverter::PositionConverter(MainHandler *m_mainHandler) : m_mainHandler(m_mainHandler)
|
||||
, m_baseCoord(LtsCoordTrans::UtmCoordinate())
|
||||
, m_asmDtc(AssetManagement::Interface::Dtc::create(m_mainHandler->dds()->dds()))
|
||||
, m_exmDtc(ExerciseManagement::Interface::Dtc::create(m_mainHandler->dds()->dds()))
|
||||
{
|
||||
, m_exmDtc(ExerciseManagement::Interface::Dtc::create(m_mainHandler->dds()->dds())),
|
||||
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {
|
||||
m_exmDtc->enableExercise();
|
||||
m_asmDtc->enableTrainingArea();
|
||||
}
|
||||
@@ -41,24 +40,24 @@ bool PositionConverter::initCoordConversion()
|
||||
|
||||
if (!m_exmDtc->waitForHistoricalDataExercise(15000))
|
||||
{
|
||||
ERROR_LOG() << "Error initializing ExerciseManagement DTC";
|
||||
ERROR_LOG(m_logger) << "Error initializing ExerciseManagement DTC";
|
||||
return false;
|
||||
}
|
||||
const auto ex = m_exmDtc->exercise(m_mainHandler->exerciseId());
|
||||
if (ex.id() <= 0)
|
||||
{
|
||||
ERROR_LOG() << "Can not retrieve exercise information for id " << m_mainHandler->exerciseId();
|
||||
ERROR_LOG(m_logger) << "Can not retrieve exercise information for id " << m_mainHandler->exerciseId();
|
||||
return false;
|
||||
}
|
||||
if (!m_asmDtc->waitForHistoricalDataTrainingArea(10000))
|
||||
{
|
||||
ERROR_LOG() << "Error initializing AssetManagement DTC";
|
||||
ERROR_LOG(m_logger) << "Error initializing AssetManagement DTC";
|
||||
return false;
|
||||
}
|
||||
const auto ta = m_asmDtc->trainingArea(ex.trainingAreaId());
|
||||
if (ta.id() <= 0)
|
||||
{
|
||||
ERROR_LOG() << "Can not retrieve training are information for id " << ex.trainingAreaId();
|
||||
ERROR_LOG(m_logger) << "Can not retrieve training are information for id " << ex.trainingAreaId();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user