@@ -77,11 +77,19 @@ public static void motor_init() {
77
77
Robot .leftSlave .configSupplyCurrentLimit (new SupplyCurrentLimitConfiguration (true , 40 , 40 , .5 ));
78
78
Robot .leftSlave .configSupplyCurrentLimit (new SupplyCurrentLimitConfiguration (true , 40 , 40 , .5 ));
79
79
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
+
80
88
// 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 ));
85
93
86
94
// Sets Climbers and Extention in brake mode
87
95
Robot .climbRotation .setNeutralMode (NeutralMode .Brake );
@@ -95,10 +103,6 @@ public static void motor_init() {
95
103
Robot .shooterFly .configPeakOutputReverse (-1 , 1 );
96
104
Robot .shooterFly .setInverted (false );
97
105
Robot .shooterFly .setSensorPhase (false );
98
-
99
- // Inverts right motor
100
- // Robot.rightMaster.setInverted(true);
101
- // Robot.rightSlave.setInverted(true);
102
106
}
103
107
104
108
public static class FlywheelCode {
0 commit comments