reduced timeout for online declination lookup from 5s to 500ms

Change-Id: Ice59065b2f71b1610bd07b316b271fa1df724443
This commit is contained in:
Axel Uhl committed 2017-11-08 08:39:38 +01:00
1 parent a3c0f6f0c2
commit ca77a10748
1 file changed
+1 -1
@@ -87,7 +87,7 @@ public class ExpeditionWindTracker extends AbstractWindTracker implements Expedi
try {
Declination declination = declinationService.getDeclination(message.getTimePoint(),
lastKnownPositionPerBoatID.get(message.getBoatID()),
/* timeoutForOnlineFetchInMilliseconds */5000);
/* timeoutForOnlineFetchInMilliseconds */500);
if (declination != null) {
windSpeed = new KnotSpeedWithBearingImpl(windSpeed.getKnots(), new DegreeBearingImpl(
windSpeed.getBearing().getDegrees()).add(declination.getBearingCorrectedTo(message.getTimePoint())));