File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/org/mayheminc/robot2020 Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public void initialize() {
31
31
// Called every time the scheduler runs while the command is scheduled.
32
32
@ Override
33
33
public void execute () {
34
- RobotContainer .climber .setWinchLeftSpeed (- power );
34
+ RobotContainer .climber .setWinchLeftSpeed (power );
35
35
RobotContainer .climber .setWinchRightSpeed (power );
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -29,14 +29,20 @@ public class Climber extends SubsystemBase {
29
29
* Creates a new Climber.
30
30
*/
31
31
public Climber () {
32
+
33
+ // TODO: Add "soft limit" to top of climber travel to avoid "overwinding"
34
+ // TODO: Add position control to go all the way to the top, and nearly all the way in for climbing
35
+
32
36
winchLeft .setNeutralMode (NeutralMode .Brake );
33
37
winchLeft .configNominalOutputVoltage (+0.0f , -0.0f );
34
38
winchLeft .configPeakOutputVoltage (+12.0 , -12.0 );
39
+ winchLeft .setInverted (true );
35
40
36
41
winchRight .setNeutralMode (NeutralMode .Brake );
37
42
winchRight .configNominalOutputVoltage (+0.0f , -0.0f );
38
43
winchRight .configPeakOutputVoltage (+12.0 , -12.0 );
39
-
44
+ winchRight .setInverted (false );
45
+
40
46
// walkerRight.setNeutralMode(NeutralMode.Brake);
41
47
// walkerRight.configNominalOutputVoltage(+0.0f, -0.0f);
42
48
// walkerRight.configPeakOutputVoltage(+12.0, -12.0);
You can’t perform that action at this time.
0 commit comments