mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 05:11:04 +00:00
use longer maneuver time (8s instead of 5s) again, but only use half interval for maneuver start/end
This commit is contained in:
1 parent
d6592c6863
commit
cdef474d30
2 files changed
+3
-3
No files matched your search
@@ -21,7 +21,7 @@ public class BoatClassImpl extends NamedImpl implements BoatClass {
|
||||
|
||||
public BoatClassImpl(String name) {
|
||||
super(name);
|
||||
approximateManeuverDurationInMilliseconds = 5000; // as discussed with Dennis Gehrlein
|
||||
approximateManeuverDurationInMilliseconds = 8000; // as discussed with Dennis Gehrlein
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -765,9 +765,9 @@ public abstract class TrackedRaceImpl implements TrackedRace, CourseListener {
|
||||
TimePoint maneuverTimePoint = new MillisecondsTimePoint(totalMilliseconds/group.size());
|
||||
Position maneuverPosition = getTrack(competitor).getEstimatedPosition(maneuverTimePoint, /* extrapolate */ false);
|
||||
MillisecondsTimePoint timePointBeforeManeuver = new MillisecondsTimePoint(group.get(0).getA().getTimePoint()
|
||||
.asMillis() - getApproximateManeuverDurationInMilliseconds());
|
||||
.asMillis() - getApproximateManeuverDurationInMilliseconds()/2);
|
||||
MillisecondsTimePoint timePointAfterManeuver = new MillisecondsTimePoint(group.get(group.size() - 1).getA()
|
||||
.getTimePoint().asMillis() + getApproximateManeuverDurationInMilliseconds());
|
||||
.getTimePoint().asMillis() + getApproximateManeuverDurationInMilliseconds()/2);
|
||||
Tack tackBeforeManeuver = getTack(competitor, timePointBeforeManeuver);
|
||||
Tack tackAfterManeuver = getTack(competitor, timePointAfterManeuver);
|
||||
// the TrackedLegOfCompetitor variables may be null, e.g., in case the time points are before or after the race
|
||||
|
||||
Reference in new issue
Block a user