Skip to content

Commit

Permalink
updated motor ids
Browse files Browse the repository at this point in the history
  • Loading branch information
siyoyoCode committed Jan 26, 2024
1 parent c875c11 commit 2411f2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/FeederSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class FeederSubsystem extends SubsystemBase{

public FeederSubsystem(){
//motors
feederMotor = new TalonFX(10);
feederMotor = new TalonFX(15);

//sensors
shooterSensor = new ColorSensorV3(I2C.Port.kMXP);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/PivotSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class PivotSubsystem extends SubsystemBase{
//final vars
public final double PIVOT_SPEED = 0.1;
final double GEARBOX_RATIO = 18.16; //ask cadders
public final int ERRORTOLERANCE = 10; //error tolerance for pid
public final int ERRORTOLERANCE = 5; //error tolerance for pid
final int LIMIT_SWITCH_ID = 1; //placeholder

//motors
Expand Down Expand Up @@ -48,7 +48,7 @@ public class PivotSubsystem extends SubsystemBase{
public PivotSubsystem(boolean alliance){

//motors
pivotMotor = new CANSparkMax(10, MotorType.kBrushless);
pivotMotor = new CANSparkMax(12, MotorType.kBrushless);

//devices
rotationEncoder = pivotMotor.getEncoder();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class ShooterSubsystem extends SubsystemBase {

public ShooterSubsystem(){
//motors
shooterMotor = new CANSparkMax(10, MotorType.kBrushless);
shooterMotorTwo = new CANSparkMax(10, MotorType.kBrushless);
shooterMotor = new CANSparkMax(13, MotorType.kBrushless);
shooterMotorTwo = new CANSparkMax(14, MotorType.kBrushless);

//second motor shooter follows first
shooterMotorTwo.follow(shooterMotor, true);
Expand Down

0 comments on commit 2411f2b

Please sign in to comment.