Archived
fixed a small error
This commit is contained in:
1 parent
1ad33fd45b
commit
a695f19cc6
1 file changed
+1
-1
@@ -99,7 +99,7 @@ public class Targeting {
|
|||||||
int gridY = Math.abs(Math.floorDiv((int) robotInchesY, tileSize));
|
int gridY = Math.abs(Math.floorDiv((int) robotInchesY, tileSize));
|
||||||
|
|
||||||
int remX = Math.floorMod((int) robotInchesX, tileSize);
|
int remX = Math.floorMod((int) robotInchesX, tileSize);
|
||||||
int remY = Math.floorMod((int) robotInchesX, tileSize);
|
int remY = Math.floorMod((int) robotInchesY, tileSize);
|
||||||
|
|
||||||
// Determine if we need to interpolate based on tile position.
|
// Determine if we need to interpolate based on tile position.
|
||||||
// if near upper or lower quarter or tile interpolate with next tile.
|
// if near upper or lower quarter or tile interpolate with next tile.
|
||||||
|
|||||||
Reference in new issue
Block a user