Skip to content

Commit 1842d3b

Browse files
committed
SKib
1 parent 042707d commit 1842d3b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/main/java/com/stuypulse/robot/subsystems/double_jointed_arm/DoubleJointedArmIOReal.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public class DoubleJointedArmIOReal implements DoubleJointedArmIO {
4747

4848
public DoubleJointedArmIOReal() {
4949
super();
50-
shoulder = new TalonFX(Ports.DoubleJointedArm.SHOULDER_MOTOR);
51-
shoulderEncoder = new CANcoder(Ports.DoubleJointedArm.SHOULDER_ENCODER);
52-
shoulderFollower = new TalonFX(Ports.DoubleJointedArm.SHOULDER_FOLLOWER);
50+
shoulder = new TalonFX(Ports.DoubleJointedArm.SHOULDER_MOTOR, "CANIVORE");
51+
shoulderEncoder = new CANcoder(Ports.DoubleJointedArm.SHOULDER_ENCODER, "CANIVORE");
52+
shoulderFollower = new TalonFX(Ports.DoubleJointedArm.SHOULDER_FOLLOWER, "CANIVORE");
5353

54-
elbow = new TalonFX(Ports.DoubleJointedArm.ELBOW_MOTOR);
55-
elbowEncoder = new CANcoder(Ports.DoubleJointedArm.ELBOW_ENCODER);
54+
elbow = new TalonFX(Ports.DoubleJointedArm.ELBOW_MOTOR, "CANIVORE");
55+
elbowEncoder = new CANcoder(Ports.DoubleJointedArm.ELBOW_ENCODER, "CANIVORE");
5656

5757
// Configs
5858
Devices.DoubleJointedArm.Shoulder.motor_config.configure(shoulder);

src/main/java/com/stuypulse/robot/subsystems/swerve/SwerveModuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public SwerveModuleImpl(String name, Translation2d location, Rotation2d angleOff
3939

4040
pivotMotor = new SparkMax(pivotMotorID, MotorType.kBrushless);
4141
pivotMotor.configure(Devices.Swerve.Turn.motorConfig, ResetMode.kResetSafeParameters, PersistMode.kPersistParameters);
42-
pivotEncoder = new CANcoder(pivotEncoderID, "rio");
42+
pivotEncoder = new CANcoder(pivotEncoderID, "CANIVORE");
4343

4444
pivotController = new AnglePIDController(Gains.Swerve.Turn.kP, Gains.Swerve.Turn.kI, Gains.Swerve.Turn.kD);
4545
}

src/main/java/com/stuypulse/robot/subsystems/wrist/WristIOReal.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public class WristIOReal implements WristIO {
2727

2828
public WristIOReal() {
2929
super();
30-
wrist = new TalonFX(Ports.Wrist.WRIST_MOTOR);
30+
wrist = new TalonFX(Ports.Wrist.WRIST_MOTOR, "CANIVORE");
3131
Devices.Wrist.motor_config.configure(wrist);
3232

33-
encoder = new CANcoder(Ports.Wrist.WRIST_ENCODER);
33+
encoder = new CANcoder(Ports.Wrist.WRIST_ENCODER, "CANIVORE");
3434
encoder.getConfigurator().apply(Devices.Wrist.cc_config);
3535

3636
wrist.setPosition(encoder.getAbsolutePosition().getValueAsDouble()); // zero position

0 commit comments

Comments
 (0)