@@ -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 {
0 commit comments