mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug5970: first compiling version with true heading in GPSFixMoving
This commit is contained in:
+11
-11
@@ -112,47 +112,47 @@ public class StatisticsTest {
|
||||
public void testTrackedRaceStatisticsCacheWithFixes() throws Exception {
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295970, 8.638958), new MillisecondsTimePoint(START_OF_RACE),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295911, 8.638971),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 10),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295866, 8.638986),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 20),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295822, 8.639010),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 30),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295785, 8.639057),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 40),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295768, 8.639108),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 50),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295761, 8.639180),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 60),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295765, 8.639278),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 70),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295785, 8.639353),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 80),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295817, 8.639406),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 90),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
trackedRace.recordFix(comp,
|
||||
new GPSFixMovingImpl(new DegreePosition(49.295861, 8.639449),
|
||||
new MillisecondsTimePoint(START_OF_RACE + 100),
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100))));
|
||||
new KilometersPerHourSpeedWithBearingImpl(1, new DegreeBearingImpl(100)), /* optionalTrueHeading */ null));
|
||||
|
||||
List<MarkPassing> markPassings = new ArrayList<>();
|
||||
markPassings.add(new MarkPassingImpl(new MillisecondsTimePoint(START_OF_RACE), waypoint1, comp));
|
||||
|
||||
+2
-2
@@ -360,7 +360,7 @@ public class MasterDataImportTest {
|
||||
logTimePoint3);
|
||||
regatta.getRegattaLog().add(mappingEvent);
|
||||
GPSFix gpsFix = new GPSFixMovingImpl(new DegreePosition(54.333, 10.133), logTimePoint2,
|
||||
new KnotSpeedWithBearingImpl(10, new DegreeBearingImpl(90)));
|
||||
new KnotSpeedWithBearingImpl(10, new DegreeBearingImpl(90)), /* optionalTrueHeading */ null);
|
||||
sourceService.getSensorFixStore().storeFix(deviceIdentifier, gpsFix);
|
||||
// test to check that batch-import of fixes works as intended
|
||||
DeviceIdentifier deviceBatch1 = addDeviceMappingWithFixes(sourceService, regatta, competitor, logTimePoint, logTimePoint3, logTimePoint4, "x", 4999);
|
||||
@@ -524,7 +524,7 @@ public class MasterDataImportTest {
|
||||
List<GPSFix> fixesToSave = new ArrayList<>(numFixes);
|
||||
for(int i = 1; i <= numFixes; i++) {
|
||||
fixesToSave.add(new GPSFixMovingImpl(new DegreePosition(54.333, 10.133), logTimePoint.plus(i),
|
||||
new KnotSpeedWithBearingImpl(10, new DegreeBearingImpl(90))));
|
||||
new KnotSpeedWithBearingImpl(10, new DegreeBearingImpl(90)), /* optionalTrueHeading */ null));
|
||||
}
|
||||
sourceService.getSensorFixStore().storeFixes(deviceIdentifier, fixesToSave, /* returnManeuverUpdate */ false, /* returnLiveDelay */ false);
|
||||
return deviceIdentifier;
|
||||
|
||||
Reference in New Issue
Block a user