Commit abab79dd authored by NicolaiO's avatar NicolaiO 🐼 Committed by TIGERs GitLab
Browse files

Required number of good samples for kick vel detector now summed over all cameras.

See merge request main/Sumatra!1384

sumatra-commit: a9132012d24675044ca0bc73ff9eb23d53ada048
parent 96274f08
Pipeline #16695 failed with stage
in 6 minutes and 54 seconds
......@@ -44,9 +44,10 @@ public class VelocityValidator implements IKickValidator
Map<Integer, List<MergedBall>> groupedBalls = balls.stream()
.collect(Collectors.groupingBy((final MergedBall b) -> b.getLatestCamBall().get().getCameraId()));
int validSamples = 0;
for (List<MergedBall> group : groupedBalls.values())
{
int validSamples = 0;
for (int i = 1; i < group.size(); i++)
{
CamBall bPrev = group.get(i - 1).getLatestCamBall().orElseThrow(IllegalStateException::new);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment