Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+17
-17
@@ -73,7 +73,7 @@ bool SAAInterface::init(std::shared_ptr<PpmHandler> ppmHandler,
|
||||
|
||||
m_ftcAes = m_aesHandler->getFtc();
|
||||
|
||||
DEBUG_LOG() << "INIT SAA Interface";
|
||||
DEBUG_LOG(m_logger) << "INIT SAA Interface";
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ static Core::RelativePositionRelativeTime convertFlugbahnpunkt(const Flugbahnpun
|
||||
|
||||
void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int aesItemId, int exposionId, const Core::GeoPosition &positionLaunch)
|
||||
{
|
||||
DEBUG_LOG() << "SAAInterface::parseFlugbahndaten";
|
||||
DEBUG_LOG(m_logger) << "SAAInterface::parseFlugbahndaten";
|
||||
|
||||
std::vector<Core::RelativePositionRelativeTime> geometryRef;
|
||||
geometryRef.clear();
|
||||
@@ -138,22 +138,22 @@ void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int ae
|
||||
const auto &utmLaunch = LtsCoordTrans::UtmCoordinate::fromGeographic(positionLaunch.lon(), positionLaunch.lat(), zone);
|
||||
|
||||
|
||||
DEBUG_LOG() << " mmilirad: " << flugbahndaten.schussrichtung;
|
||||
DEBUG_LOG(m_logger) << " mmilirad: " << flugbahndaten.schussrichtung;
|
||||
double grad = (flugbahndaten.schussrichtung / 6400.) * 360.0;
|
||||
DEBUG_LOG() << " milli rad to degree" << (flugbahndaten.schussrichtung / 6400.) * 360;
|
||||
DEBUG_LOG() << "Degree to target" << grad;
|
||||
DEBUG_LOG(m_logger) << " milli rad to degree" << (flugbahndaten.schussrichtung / 6400.) * 360;
|
||||
DEBUG_LOG(m_logger) << "Degree to target" << grad;
|
||||
|
||||
DEBUG_LOG() << "Start point: " << positionLaunch;
|
||||
DEBUG_LOG(m_logger) << "Start point: " << positionLaunch;
|
||||
|
||||
const auto &coordEnd = LtsCoordTrans::UtmCoordinate::fromGeographic(flugbahndaten.zielkoordinate.koordinate.longitude * (M_PI / 180.0),
|
||||
flugbahndaten.zielkoordinate.koordinate.latitude * (M_PI / 180.0));
|
||||
DEBUG_LOG() << "End point: " << coordEnd;
|
||||
DEBUG_LOG(m_logger) << "End point: " << coordEnd;
|
||||
LtsCoordTrans::UtmCoordinate coordDiff = coordEnd;
|
||||
|
||||
coordDiff.x = coordDiff.x - utmLaunch.x;
|
||||
coordDiff.y = coordDiff.y - utmLaunch.y;
|
||||
const double useNewGrad = -90 + std::atan2(coordDiff.y, coordDiff.x) * (180.0 / M_PI);
|
||||
DEBUG_LOG() << "use new Degree " << useNewGrad;
|
||||
DEBUG_LOG(m_logger) << "use new Degree " << useNewGrad;
|
||||
|
||||
QTransform matrix;
|
||||
matrix.rotate(useNewGrad);
|
||||
@@ -169,11 +169,11 @@ void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int ae
|
||||
if (m_logger.isDebugEnabled())
|
||||
{
|
||||
const auto &fbPosRelative = convertFlugbahnpunkt(pos, matrix, utmLaunch, m_logger);
|
||||
DEBUG_LOG() << " fbPosRelative " << fbPosRelative;
|
||||
DEBUG_LOG(m_logger) << " fbPosRelative " << fbPosRelative;
|
||||
}
|
||||
|
||||
|
||||
TRACE_LOG() << "Flugbahnpunkt:"
|
||||
TRACE_LOG(m_logger) << "Flugbahnpunkt:"
|
||||
<< ", xRelativ :" << pos.xRelativ
|
||||
<< ", yRelativ :" << pos.yRelativ
|
||||
<< ", zRelativ :" << pos.zRelativ
|
||||
@@ -198,7 +198,7 @@ void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int ae
|
||||
utmCoord.zone = utmLaunch.zone;
|
||||
QPointF pntGeo = utmCoord.geographic();
|
||||
|
||||
TRACE_LOG() << "utmCoord :" << utmCoord.x << " / " << utmCoord.y << ", utmCoord.zone :" << utmCoord.zone << ", utmCoord.isValid() :" << utmCoord.isValid()
|
||||
TRACE_LOG(m_logger) << "utmCoord :" << utmCoord.x << " / " << utmCoord.y << ", utmCoord.zone :" << utmCoord.zone << ", utmCoord.isValid() :" << utmCoord.isValid()
|
||||
<< ", pntGeo :" << pntGeo.x() << " / " << pntGeo.y() << " / " << z;
|
||||
QTransform matrix;
|
||||
matrix.rotate(useNewGrad);
|
||||
@@ -210,15 +210,15 @@ void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int ae
|
||||
flightPoint.relativeTime() = pos.zeit;
|
||||
QPointF point(flightPoint.offsetX(), flightPoint.offsetY());
|
||||
|
||||
TRACE_LOG() << " POS bevore rot: " << point;
|
||||
TRACE_LOG(m_logger) << " POS bevore rot: " << point;
|
||||
|
||||
auto rotatePoint = matrix.map(point);
|
||||
TRACE_LOG() << " POS after rot: " << rotatePoint;
|
||||
TRACE_LOG(m_logger) << " POS after rot: " << rotatePoint;
|
||||
|
||||
pntGeo.setX(rotatePoint.x());
|
||||
pntGeo.setY(rotatePoint.y());
|
||||
|
||||
TRACE_LOG() << "utmCoord :" << utmCoord.x << " / " << utmCoord.y << ", utmCoord.zone :" << utmCoord.zone << ", utmCoord.isValid() :" << utmCoord.isValid()
|
||||
TRACE_LOG(m_logger) << "utmCoord :" << utmCoord.x << " / " << utmCoord.y << ", utmCoord.zone :" << utmCoord.zone << ", utmCoord.isValid() :" << utmCoord.isValid()
|
||||
<< ", pntGeo :" << pntGeo.x() << " / " << pntGeo.y() << " / " << z;
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int ae
|
||||
newRequest->mhpScatterWidthDetonationHeight(flugbahndaten.streuung.seitenstreuungH);
|
||||
newRequest->shootDirection((flugbahndaten.schussrichtung / 6400.) * 360);
|
||||
newRequest->errorcode(static_cast<int>(flugbahndaten.fehlercode));
|
||||
DEBUG_LOG() << "!!!!!!!!!!!geometryRef.size=" << geometryRef.size() << ", newRequest->geometry().size() :" << newRequest->geometry().size()
|
||||
DEBUG_LOG(m_logger) << "!!!!!!!!!!!geometryRef.size=" << geometryRef.size() << ", newRequest->geometry().size() :" << newRequest->geometry().size()
|
||||
<< ", newRequest->errorcode :" << newRequest->errorcode() << ", newRequest->Peak:" << newRequest->peakAltitude()
|
||||
<< ", newRequest->direction:" << newRequest->shootDirection() << ", flugbahndaten.fehlercode :" << static_cast<int>(flugbahndaten.fehlercode);
|
||||
|
||||
@@ -254,10 +254,10 @@ void SAAInterface::parseFlugbahndaten(const Flugbahndaten &flugbahndaten, int ae
|
||||
|
||||
void SAAInterface::onTrajectoryAdlerModifyReply(const Core::FunctionReplyObject &reply)
|
||||
{
|
||||
DEBUG_LOG() << "onTrajectoryAdlerModifyReply";
|
||||
DEBUG_LOG(m_logger) << "onTrajectoryAdlerModifyReply";
|
||||
if (reply.error())
|
||||
{
|
||||
ERROR_LOG() << reply.translated();
|
||||
ERROR_LOG(m_logger) << reply.translated();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user