mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 18:33:54 +00:00
fixed isValid for three-byte integers by inversing its logic
This commit is contained in:
1 parent
0ff4898709
commit
617aa415ca
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ import com.sap.sailing.domain.swisstimingreplayadapter.impl.Weather;
|
||||
* n x [
|
||||
* 1 x referenceTimestamp
|
||||
* 1 x referenceLocation
|
||||
* 1 x rsc_cid
|
||||
* 1 x raceID
|
||||
* 1 x competitorsCount
|
||||
* competitorsCount x competitor
|
||||
* m x mark
|
||||
|
||||
+2
-1
@@ -166,7 +166,7 @@ public class SwissTimingReplayToDomainAdapter extends SwissTimingReplayAdapter {
|
||||
}
|
||||
|
||||
private boolean isValid(int threeByteValue) {
|
||||
return threeByteValue == 2<<24 - 1;
|
||||
return threeByteValue != 2<<24 - 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -297,6 +297,7 @@ public class SwissTimingReplayToDomainAdapter extends SwissTimingReplayAdapter {
|
||||
short vmg_Knots_x10, CompetitorStatus competitorStatus, short rank, short distanceToLeader_meters,
|
||||
short distanceToNextMark_meters, short nextMark, short pRank, short ptPoints, short pnPoints) {
|
||||
DynamicTrackedRace trackedRace = trackedRacePerRaceID.get(currentRaceID);
|
||||
// TODO does this have to be "+" or "-"? Jens Rommel made a remark on 2012-12-18 that this may have to be "-"...
|
||||
Position position = new DegreePosition(referenceLocation.getLatDeg() + ((double) latitude) / 10000000.,
|
||||
referenceLocation.getLngDeg() + ((double) longitude) / 10000000.);
|
||||
TimePoint raceTimePoint = raceTimePerRaceID.containsKey(currentRaceID) ? raceTimePerRaceID.get(currentRaceID) : referenceTimePoint;
|
||||
|
||||
Reference in new issue
Block a user