Skip to content

Commit

Permalink
Added fix for throughbore readings
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch committed Aug 24, 2024
1 parent 73b253b commit 5de1570
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions swervelib/parser/json/DeviceJson.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ public SwerveAbsoluteEncoder createEncoder(SwerveMotor motor)
return null;
case "integrated":
case "attached":
return new SparkMaxEncoderSwerve(motor, 1);
case "sparkmax_analog":
return new SparkMaxAnalogEncoderSwerve(motor, 3.3);
case "canandcoder":
return new SparkMaxEncoderSwerve(motor, 360);
case "sparkmax_analog":
return new SparkMaxAnalogEncoderSwerve(motor, 3.3);
case "canandcoder_can":
return new CanAndCoderSwerve(id);
case "ctre_mag":
Expand Down

0 comments on commit 5de1570

Please sign in to comment.