Skip to content

Commit

Permalink
Initialize highFreqModulePositions
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma03L committed Feb 10, 2024
1 parent 2c0dc92 commit 7a4b182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/swerve/SwerveDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
Expand All @@ -35,7 +36,7 @@ public class SwerveDrive extends SubsystemBase {
@AutoLogOutput
private final SwerveModulePosition[] modulePositions = new SwerveModulePosition[4];

private final List<SwerveModulePosition[]> highFreqModulePositions = new ArrayList<>();
private final List<SwerveModulePosition[]> highFreqModulePositions = new ArrayList<>(Collections.singleton(modulePositions));

private final GyroIO gyro;
private final SwerveDriveKinematics kinematics =
Expand Down

0 comments on commit 7a4b182

Please sign in to comment.