Ensure 2 samples when drawing paths
This commit is contained in:
@ -223,7 +223,7 @@ public final class MecanumDrive {
|
||||
|
||||
List<Double> disps = com.acmerobotics.roadrunner.Math.range(
|
||||
0, t.path.length(),
|
||||
(int) Math.ceil(t.path.length() / 2));
|
||||
Math.max(2, (int) Math.ceil(t.path.length() / 2)));
|
||||
xPoints = new double[disps.size()];
|
||||
yPoints = new double[disps.size()];
|
||||
for (int i = 0; i < disps.size(); i++) {
|
||||
|
@ -231,7 +231,7 @@ public final class TankDrive {
|
||||
|
||||
List<Double> disps = com.acmerobotics.roadrunner.Math.range(
|
||||
0, t.path.length(),
|
||||
(int) Math.ceil(t.path.length() / 2));
|
||||
Math.max(2, (int) Math.ceil(t.path.length() / 2)));
|
||||
xPoints = new double[disps.size()];
|
||||
yPoints = new double[disps.size()];
|
||||
for (int i = 0; i < disps.size(); i++) {
|
||||
|
Reference in New Issue
Block a user