Skip to content

Commit 3d80b46

Browse files
committed
arm, not elevator
1 parent 600e6c1 commit 3d80b46

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,10 @@ private void configureButtonBindings() {
377377
operator.b().toggleOnTrue(deploy.deployCMD());
378378
operator.b().toggleOnFalse(deploy.undeployCMD());
379379

380-
deploy.setDefaultCommand(deploy.mannualCMD(operator::getLeftY));
380+
operator
381+
.leftStick()
382+
.onTrue(
383+
deploy.mannualCMD(operator::getLeftY));
381384

382385
/* HOPPER COMMANDS */
383386

src/main/java/frc/robot/subsystems/intake/Deploy.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public Deploy() {
5050
.d(d)
5151
.feedForward
5252
.kS(s)
53-
.kG(g)
53+
.kCos(g)
5454
.kV(v);
5555
// .kCosRatio(IntakeConstants.DEPLOY_RATIO);
5656
deployMotor.configure(config, ResetMode.kResetSafeParameters, PersistMode.kPersistParameters);
@@ -80,7 +80,7 @@ public Command deployCMD() {
8080
() -> {
8181
closedLoopController.setSetpoint(
8282
IntakeConstants.DEPLOY_POSITION.in(Radians), ControlType.kPosition);
83-
}),
83+
}, this),
8484
Commands.waitUntil(closedLoopController::isAtSetpoint),
8585
Commands.runOnce(() -> deployMotor.set(rest)))
8686
.withName("Deployed");
@@ -98,7 +98,7 @@ public Command readyCMD() {
9898
() -> {
9999
closedLoopController.setSetpoint(
100100
IntakeConstants.READY_POSITION.in(Radians), ControlType.kPosition);
101-
})
101+
}, this)
102102
.withName("Ready");
103103
// return Commands.deadline(
104104
// Commands.waitUntil(
@@ -114,7 +114,7 @@ public Command undeployCMD() {
114114
() -> {
115115
closedLoopController.setSetpoint(
116116
IntakeConstants.UP_POSITION.in(Radians), ControlType.kPosition);
117-
})
117+
}, this)
118118
.withName("Retracted");
119119
// return Commands.deadline(
120120
// Commands.waitUntil(

0 commit comments

Comments
 (0)