@@ -111,11 +111,21 @@ public SwerveAbsoluteEncoder createEncoder(SwerveMotor motor)
111111 return new TalonSRXEncoderSwerve (motor , FeedbackDevice .PulseWidthEncodedPosition );
112112 case "talonsrx_analog" :
113113 return new TalonSRXEncoderSwerve (motor , FeedbackDevice .Analog );
114- case "thrifty_nova " :
114+ case "thrifty_nova_rev " :
115115 return ReflectionsManager .<SwerveAbsoluteEncoder >create (VENDOR .THRIFTYBOT ,
116- "com.thethriftybot.ThriftyNova" ,
117- new Class []{SwerveMotor .class },
118- new Object []{motor });
116+ "swervelib.encoders.ThriftyNovaEncoderSwerve" ,
117+ new Class []{SwerveMotor .class , String .class },
118+ new Object []{motor , "REV_ENCODER" });
119+ case "thrifty_nova_redux" :
120+ return ReflectionsManager .<SwerveAbsoluteEncoder >create (VENDOR .THRIFTYBOT ,
121+ "swervelib.encoders.ThriftyNovaEncoderSwerve" ,
122+ new Class []{SwerveMotor .class , String .class },
123+ new Object []{motor , "REDUX_ENCODER" });
124+ case "thrifty_nova_srx_mag" :
125+ return ReflectionsManager .<SwerveAbsoluteEncoder >create (VENDOR .THRIFTYBOT ,
126+ "swervelib.encoders.ThriftyNovaEncoderSwerve" ,
127+ new Class []{SwerveMotor .class , String .class },
128+ new Object []{motor , "SRX_MAG_ENCODER" });
119129 default :
120130 throw new RuntimeException (type + " is not a recognized absolute encoder type." );
121131 }
0 commit comments