Ref T261, also log. scenery offset

This commit is contained in:
Klaus Basan
2018-05-05 04:45:29 +02:00
committed by Roland Winklmeier
parent 2a5261f3f6
commit d50498fa39
2 changed files with 10 additions and 8 deletions

View File

@@ -415,7 +415,8 @@ namespace BlackMisc
) %
(
withElevation ?
QStringLiteral("Elev info.: ") % elevationInfo % separator :
QStringLiteral("Elev info.: ") % elevationInfo %
QStringLiteral(" scenery os: ") % sceneryOffset.valueRoundedWithUnit(1) % separator :
QStringLiteral("")
) %
QStringLiteral("change: ") % change.toQString(true) %

View File

@@ -30,12 +30,12 @@ namespace BlackMisc
//! Log entry for situation interpolation
struct BLACKMISC_EXPORT SituationLog
{
QChar interpolator; //!< what interpolator is used
qint64 tsCurrent = -1; //!< current timestamp
qint64 tsInterpolated = -1; //!< timestamp interpolated
double groundFactor = -1; //!< current ground factor
double vtolAircraft = false; //!< VTOL aircraft
double simTimeFraction = -1; //!< time fraction, expected 0..1
QChar interpolator; //!< what interpolator is used
qint64 tsCurrent = -1; //!< current timestamp
qint64 tsInterpolated = -1; //!< timestamp interpolated
double groundFactor = -1; //!< current ground factor
double vtolAircraft = false; //!< VTOL aircraft
double simTimeFraction = -1; //!< time fraction, expected 0..1
double deltaSampleTimesMs = -1; //!< delta time between samples (i.e. 2 situations)
bool useParts = false; //!< supporting aircraft parts
int noNetworkSituations = 0; //!< available network situations
@@ -46,7 +46,8 @@ namespace BlackMisc
Aviation::CAircraftSituationList interpolationSituations; //!< the interpolator uses 2, 3 situations (oldest at end)
Aviation::CAircraftSituation situationCurrent; //!< interpolated situation
Aviation::CAircraftSituationChange change; //!< change
PhysicalQuantities::CLength cgAboveGround; //!< center of gravity
PhysicalQuantities::CLength cgAboveGround = PhysicalQuantities::CLength::null(); //!< center of gravity (CG)
PhysicalQuantities::CLength sceneryOffset = PhysicalQuantities::CLength::null(); //!< scenery offset
CInterpolationAndRenderingSetupPerCallsign usedSetup; //!< used setup
//! Delta time between interpolation and current time