mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T261, logger support for situation change
This commit is contained in:
committed by
Roland Winklmeier
parent
adeea182da
commit
46f509c367
@@ -408,24 +408,26 @@ namespace BlackMisc
|
||||
const CAircraftSituation situationOldInterpolation = this->oldestInterpolationSituation();
|
||||
const CAircraftSituation situationNewInterpolation = this->newestInterpolationSituation();
|
||||
|
||||
return QStringLiteral("CS: ") % callsign.asString() % separator %
|
||||
QStringLiteral("ts: ") % CInterpolationLogger::msSinceEpochToTimeAndTimestamp(tsCurrent) %
|
||||
QStringLiteral(" | type: ") % this->interpolationType() %
|
||||
QStringLiteral(" | gnd.fa.: ") % QString::number(groundFactor) %
|
||||
QStringLiteral(" | CG: ") % cgAboveGround.valueRoundedWithUnit(CLengthUnit::m(), 1) %
|
||||
QStringLiteral(" | alt.cor.: ") % altCorrection %
|
||||
QStringLiteral(" | #nw.sit.: ") % QString::number(noNetworkSituations) %
|
||||
(
|
||||
return (
|
||||
withSetup ?
|
||||
separator % QStringLiteral("setup: ") % usedSetup.toQString(true) :
|
||||
QStringLiteral("setup: ") % usedSetup.toQString(true) % separator :
|
||||
QStringLiteral("")
|
||||
) %
|
||||
(
|
||||
withElevation ?
|
||||
separator %
|
||||
QStringLiteral("Elev info.: ") % elevationInfo :
|
||||
QStringLiteral("Elev info.: ") % elevationInfo % separator :
|
||||
QStringLiteral("")
|
||||
) %
|
||||
QStringLiteral("change: ") % change.toQString(true) %
|
||||
separator %
|
||||
QStringLiteral("Interpolation CS: ") % callsign.asString() % separator %
|
||||
QStringLiteral("ts: ") % CInterpolationLogger::msSinceEpochToTimeAndTimestamp(tsCurrent) %
|
||||
QStringLiteral(" | type: ") % this->interpolationType() %
|
||||
QStringLiteral(" | gnd.fa.: ") % QString::number(groundFactor) %
|
||||
QStringLiteral(" | CG: ") % cgAboveGround.valueRoundedWithUnit(CLengthUnit::m(), 1) %
|
||||
QStringLiteral(" ") % cgAboveGround.valueRoundedWithUnit(CLengthUnit::ft(), 1) %
|
||||
QStringLiteral(" | alt.cor.: ") % altCorrection %
|
||||
QStringLiteral(" | #nw.sit.: ") % QString::number(noNetworkSituations) %
|
||||
(
|
||||
withDeltaTimes ?
|
||||
separator %
|
||||
@@ -442,7 +444,7 @@ namespace BlackMisc
|
||||
(
|
||||
withCurrentSituation ?
|
||||
separator %
|
||||
QStringLiteral("sit.: ") % situationCurrent.toQString(true) :
|
||||
QStringLiteral("cur.sit.(interpolated): ") % situationCurrent.toQString(true) :
|
||||
QStringLiteral("")
|
||||
) %
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user