mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Update to 2024.5.0.3
This commit is contained in:
@@ -81,15 +81,6 @@ public class ModuleJson
|
||||
SwerveMotor angleMotor = angle.createMotor(false);
|
||||
SwerveAbsoluteEncoder absEncoder = encoder.createEncoder(angleMotor);
|
||||
|
||||
// If the absolute encoder is attached.
|
||||
if (absEncoder != null && angleMotor.getMotor() instanceof CANSparkMax)
|
||||
{
|
||||
if (absEncoder.getAbsoluteEncoder() instanceof MotorFeedbackSensor)
|
||||
{
|
||||
angleMotor.setAbsoluteEncoder(absEncoder);
|
||||
}
|
||||
}
|
||||
|
||||
// Setup deprecation notice.
|
||||
// if (this.conversionFactor.drive != 0 && this.conversionFactor.angle != 0)
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user