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

[#1599] Correctly set ball contact when inserting snapshots

Closes #1599

See merge request main/Sumatra!1338

sumatra-commit: 540e952d3dd31f0b2c72d6a1d51631f1916c1b91
parent 360d5bb3
Pipeline #8683 passed with stage
in 3 minutes and 55 seconds
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.wp.data;
......@@ -35,7 +35,7 @@ public class BallContact
public static BallContact def(long timestamp)
{
return new BallContact(timestamp, -10000000, -10000000, false);
return new BallContact(timestamp, (long) -1e9, (long) -1e9, false);
}
......
......@@ -50,8 +50,8 @@ public class BallContactCalculator
return new BallContact(
robotInfo.getTimestamp(),
startBallContactMap.getOrDefault(robotInfo.getBotId(), -10000000L),
endBallContactMap.getOrDefault(robotInfo.getBotId(), -10000000L),
startBallContactMap.getOrDefault(robotInfo.getBotId(), (long) -1e9),
endBallContactMap.getOrDefault(robotInfo.getBotId(), (long) -1e9),
ballContactFromVision
);
}
......
Supports Markdown
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