Skip to content

Commit

Permalink
Swap Spark MAX drive implementation to always use absolute analog enc…
Browse files Browse the repository at this point in the history
…oder
  • Loading branch information
camearle20 committed Feb 10, 2024
1 parent 898351a commit efb0c37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public ModuleIOSparkMax(ModuleConfig config) {
drivePositionQueue =
SparkMaxOdometryThread.getInstance().registerSignal(driveEncoder::getPosition);
turnPositionQueue =
SparkMaxOdometryThread.getInstance().registerSignal(absoluteEncoderValue.get()::getRadians);
SparkMaxOdometryThread.getInstance()
.registerSignal(() -> absoluteEncoderValue.get().getRadians());

// Init Controllers
driveController = new PIDController(moduleConstants.drivekP(), 0.0, moduleConstants.drivekD());
Expand Down

0 comments on commit efb0c37

Please sign in to comment.