Skip to content

Commit

Permalink
toss off canivore
Browse files Browse the repository at this point in the history
  • Loading branch information
GearBoxFox committed Dec 4, 2024
1 parent 345bd94 commit bdb0986
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/arm/ArmIOKraken.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class ArmIOKraken implements ArmIO {
private final StatusSignal<Double> m_wristCurrentDrawSignal;

public ArmIOKraken() {
final String CANBUS = "canivore";
final String CANBUS = "rio";
m_armEncoder = new CANcoder(ArmConstants.ARM_ENCODER_ID, CANBUS);
m_wristEncoder = new CANcoder(ArmConstants.WRIST_ENCODER_ID, CANBUS);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/** IO implementation for Pigeon2 */
public class GyroIOPigeon2 implements GyroIO {
private final Pigeon2 pigeon = new Pigeon2(13, "canivore");
private final Pigeon2 pigeon = new Pigeon2(13, "rio");
private final StatusSignal<Double> yaw = pigeon.getYaw();
// private final Queue<Double> yawPositionQueue;
private final StatusSignal<Double> yawVelocity = pigeon.getAngularVelocityZWorld();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class ModuleIOTalonFX implements ModuleIO {
PositionVoltage m_posRequest;

public ModuleIOTalonFX(ModuleConstants moduleConstants) {
String canbus = "canivore";
String canbus = "rio";
m_moduleConstants = moduleConstants;

m_cancoder = new CANcoder(moduleConstants.ENCODER_ID(), canbus);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/lib/factories/TalonFXFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private TalonFXFactory() {
//NOTE: This and the next method should return a talonFX, and both be static methods, not constructors
//METHOD: This allows for the creation of a new Talon Brushless Motor
public static TalonFX createTalon(int id) {
TalonFX talonFX = new TalonFX(id, "canivore");
TalonFX talonFX = new TalonFX(id, "rio");
talonFX.getConfigurator().apply(new TalonFXConfiguration());
TalonFxMotors.add(new Pair<>(talonFX, new TalonFXConfiguration()));
return talonFX;
Expand Down Expand Up @@ -49,7 +49,7 @@ public static TalonFX createTalon(int id, String canbusName, TalonFXConfiguratio

//METHOD: This allows for the creation of a new Talon Brushless Motor with a preset Config
public static TalonFX createTalon(int id, TalonFXConfiguration config) {
TalonFX talonFX = new TalonFX(id, "canivore");
TalonFX talonFX = new TalonFX(id, "rio");

for (int i = 0; i < 4; i++) {
boolean error = talonFX.getConfigurator().apply(config, 0.1).isError();
Expand Down

0 comments on commit bdb0986

Please sign in to comment.