-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
16750 Horizontal slide configuration and testing on the bot. - Maggie
- Loading branch information
1 parent
f629962
commit e8d6746
Showing
8 changed files
with
138 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
.../java/org/firstinspires/ftc/sixteen750/commands/slides/HorizontalSlideNeutralCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
package org.firstinspires.ftc.sixteen750.commands.slides; | ||
|
||
import com.technototes.library.command.Command; | ||
|
||
import org.firstinspires.ftc.sixteen750.Robot; | ||
import org.firstinspires.ftc.sixteen750.subsystems.HorizontalSlidesSubsystem; | ||
|
||
public class HorizontalSlideNeutralCommand implements Command { | ||
|
||
private HorizontalSlidesSubsystem subsystem; | ||
|
||
public HorizontalSlideNeutralCommand(HorizontalSlidesSubsystem n){ | ||
public HorizontalSlideNeutralCommand(HorizontalSlidesSubsystem n) { | ||
subsystem = n; | ||
addRequirements(n); | ||
} | ||
|
||
@Override | ||
public void execute(){ | ||
public void execute() { | ||
subsystem.slidesin(); | ||
subsystem.ClawServoChomp(); | ||
subsystem.ClawWristServoPickup(); | ||
subsystem.ClawServoBigOpen(); | ||
subsystem.ClawWristServoTransfer(); | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
.../main/java/org/firstinspires/ftc/sixteen750/commands/slides/HorizontalSlidesCommands.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
package org.firstinspires.ftc.sixteen750.commands.slides; | ||
|
||
import com.technototes.library.command.Command; | ||
import com.technototes.library.command.SequentialCommandGroup; | ||
import org.firstinspires.ftc.sixteen750.Robot; | ||
|
||
public class HorizontalSlidesCommands { | ||
|
||
//command.create(something something) | ||
//low basket, high basket, low specimen, high specimen, bucket transfer, clawwrist transfer, inc/dec, pickup, claw | ||
public static Command horizontalExtend(Robot r) { | ||
return Command.create(r.horizontalSlidesSubsystem::slidesout, r.horizontalSlidesSubsystem); | ||
} | ||
|
||
public static Command horizontalRetract(Robot r) { | ||
return Command.create(r.horizontalSlidesSubsystem::slidesin, r.horizontalSlidesSubsystem); | ||
} | ||
|
||
public static Command clawChomp(Robot r) { | ||
return Command.create( | ||
r.horizontalSlidesSubsystem::ClawServoChomp, | ||
r.horizontalSlidesSubsystem | ||
); | ||
} | ||
|
||
public static Command clawOpen(Robot r) { | ||
return Command.create( | ||
r.horizontalSlidesSubsystem::ClawServoBigOpen, | ||
r.horizontalSlidesSubsystem | ||
); | ||
} | ||
|
||
public static Command wristTransfer(Robot r) { | ||
return Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoTransfer, | ||
r.horizontalSlidesSubsystem | ||
); | ||
} | ||
|
||
public static SequentialCommandGroup transferring(Robot r) { | ||
return new SequentialCommandGroup( | ||
Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoTransfer, | ||
r.horizontalSlidesSubsystem | ||
), | ||
Command.create(r.horizontalSlidesSubsystem::slidesin, r.horizontalSlidesSubsystem), | ||
Command.create( | ||
r.horizontalSlidesSubsystem::ClawServoBigOpen, | ||
r.horizontalSlidesSubsystem | ||
) | ||
// commands for vertical slide bucket transfer position first, then wrist transferring | ||
); | ||
} | ||
|
||
public static Command wristPickup(Robot r) { | ||
return Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoPickup, | ||
r.horizontalSlidesSubsystem | ||
); | ||
} | ||
|
||
public static Command wristIncrement(Robot r) { | ||
return Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoIncrement, | ||
r.horizontalSlidesSubsystem | ||
); | ||
} | ||
|
||
public static Command wristDecrement(Robot r) { | ||
return Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoDecrement, | ||
r.horizontalSlidesSubsystem | ||
); | ||
} | ||
|
||
public static SequentialCommandGroup intake(Robot r) { | ||
return new SequentialCommandGroup( | ||
Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoTransfer, | ||
r.horizontalSlidesSubsystem | ||
), | ||
Command.create(r.horizontalSlidesSubsystem::slidesout, r.horizontalSlidesSubsystem), | ||
Command.create( | ||
r.horizontalSlidesSubsystem::ClawWristServoPickup, | ||
r.horizontalSlidesSubsystem | ||
), | ||
Command.create( | ||
r.horizontalSlidesSubsystem::ClawServoBigOpen, | ||
r.horizontalSlidesSubsystem | ||
) | ||
); | ||
} | ||
} |
42 changes: 0 additions & 42 deletions
42
...een750/src/main/java/org/firstinspires/ftc/sixteen750/commands/slides/SlidesCommands.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters