Skip to content

Commit

Permalink
Fix MA3 to use Analog Input instead.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <[email protected]>
  • Loading branch information
thenetworkgrinch committed Jan 18, 2024
1 parent 1a9c572 commit 8210b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/swervelib/parser/json/DeviceJson.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ public SwerveAbsoluteEncoder createEncoder(SwerveMotor motor)
return new SparkMaxEncoderSwerve(motor, 360);
case "canandcoder_can":
return new CanAndCoderSwerve(id);
case "ma3":
case "ctre_mag":
case "rev_hex":
case "throughbore":
case "am_mag":
case "dutycycle":
return new PWMDutyCycleEncoderSwerve(id);
case "thrifty":
case "ma3":
case "analog":
return new AnalogAbsoluteEncoderSwerve(id);
case "cancoder":
Expand Down

0 comments on commit 8210b9c

Please sign in to comment.