refactor: Change variable type of aircraftNumber

The aircraft number should always be positive
This commit is contained in:
Lars Toenning
2024-01-04 22:38:00 +01:00
parent 4b05c4200d
commit 78d0dc4435
15 changed files with 17 additions and 19 deletions

View File

@@ -105,7 +105,7 @@ namespace BlackMiscTest
// from: ts - 2 * deltaT + offset
// to: ts + offset
const CInterpolationResult result = interpolator.getInterpolation(currentTime, setup);
const CInterpolationResult result = interpolator.getInterpolation(currentTime, setup, 0);
const CAircraftSituation currentSituation(result);
QVERIFY2(result.getInterpolationStatus().isInterpolated(), "Value was not interpolated");
const double latDeg = currentSituation.getPosition().latitude().valueRounded(CAngleUnit::deg(), 5);
@@ -139,7 +139,7 @@ namespace BlackMiscTest
// This will use range
// from: ts - 2* deltaT + offset
// to: ts + offset
const CInterpolationResult result = interpolator.getInterpolation(currentTime, setup);
const CInterpolationResult result = interpolator.getInterpolation(currentTime, setup, 0);
const CAircraftSituation currentSituation(result);
QVERIFY2(result.getInterpolationStatus().isInterpolated(), "Not interpolated");
QVERIFY2(!currentSituation.getCallsign().isEmpty(), "Empty callsign");
@@ -163,7 +163,7 @@ namespace BlackMiscTest
timer.start();
for (qint64 currentTime = ts - 2 * deltaT; currentTime < ts; currentTime += 250)
{
const CInterpolationResult result = interpolator.getInterpolation(currentTime, setup);
const CInterpolationResult result = interpolator.getInterpolation(currentTime, setup, 0);
fetchedParts++;
QVERIFY2(result.getPartsStatus().isSupportingParts(), "Parts not supported");
}