Skip to content

Commit 39040c8

Browse files
committed
changed climber amperage limit
1 parent 495ea82 commit 39040c8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/main/java/frc/robot/Modules/MotorControl.java

+12-8
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,19 @@ public static void motor_init() {
7777
Robot.leftSlave.configSupplyCurrentLimit(new SupplyCurrentLimitConfiguration(true, 40, 40, .5));
7878
Robot.leftSlave.configSupplyCurrentLimit(new SupplyCurrentLimitConfiguration(true, 40, 40, .5));
7979

80+
// // Inverts right motor
81+
// Robot.rightMaster.setInverted(true);
82+
// Robot.rightSlave.setInverted(true);
83+
84+
// Follow master motors
85+
Robot.rightSlave.follow(Robot.rightMaster);
86+
Robot.leftSlave.follow(Robot.leftMaster);
87+
8088
// Initialize Climber's and their Motor Brakes
81-
Robot.climbRotation.configStatorCurrentLimit(new StatorCurrentLimitConfiguration(true, 80, 80, .5));
82-
Robot.climbExtension.configStatorCurrentLimit(new StatorCurrentLimitConfiguration(true, 80, 80, .5));
83-
Robot.climbRotation.configSupplyCurrentLimit(new SupplyCurrentLimitConfiguration(true, 80, 80, .5));
84-
Robot.climbExtension.configSupplyCurrentLimit(new SupplyCurrentLimitConfiguration(true, 80, 80, .5));
89+
Robot.climbRotation.configStatorCurrentLimit(new StatorCurrentLimitConfiguration(true, 40, 40, .5));
90+
Robot.climbExtension.configStatorCurrentLimit(new StatorCurrentLimitConfiguration(true, 40, 40, .5));
91+
Robot.climbRotation.configSupplyCurrentLimit(new SupplyCurrentLimitConfiguration(true, 40, 40, .5));
92+
Robot.climbExtension.configSupplyCurrentLimit(new SupplyCurrentLimitConfiguration(true, 40, 40, .5));
8593

8694
// Sets Climbers and Extention in brake mode
8795
Robot.climbRotation.setNeutralMode(NeutralMode.Brake);
@@ -95,10 +103,6 @@ public static void motor_init() {
95103
Robot.shooterFly.configPeakOutputReverse(-1, 1);
96104
Robot.shooterFly.setInverted(false);
97105
Robot.shooterFly.setSensorPhase(false);
98-
99-
// Inverts right motor
100-
// Robot.rightMaster.setInverted(true);
101-
// Robot.rightSlave.setInverted(true);
102106
}
103107

104108
public static class FlywheelCode {

src/main/java/frc/robot/Robot.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class Robot extends TimedRobot {
6868

6969
@Override
7070
public void robotInit() {
71-
// MOTORS
71+
// DECLARE MOTORS
7272
//Declare Drivetrain motors
7373
rightMaster = new WPI_TalonFX(RobotInformation.RobotData.RobotPorts.DRIVETRAIN_FRONTRIGHT);
7474
rightSlave = new WPI_TalonFX(RobotInformation.RobotData.RobotPorts.DRIVETRAIN_BACKRIGHT);
@@ -86,10 +86,6 @@ public void robotInit() {
8686
// Declare Shooter Motors
8787
shooterFly = new WPI_TalonFX(RobotInformation.RobotData.RobotPorts.SHOOTER_FLY);
8888

89-
// Follow master motors
90-
rightSlave.follow(rightMaster);
91-
leftSlave.follow(leftMaster);
92-
9389
// Initalise motor values (Climbers, Flywheel)
9490
MotorControl.motor_init();
9591

0 commit comments

Comments
 (0)