Skip to content

Commit

Permalink
Added fix for throughbore readings.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Aug 24, 2024
1 parent 839786b commit c52cd14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/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 c52cd14

Please sign in to comment.