File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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(
You can’t perform that action at this time.
0 commit comments