Conversation
…ontrollerBindings
…ld be fine after isDeployed is removed
…ontrollerBindings
|
|
||
| @Override | ||
| public void end(boolean interrupted) { | ||
| subsystem.stopMotors(); |
There was a problem hiding this comment.
This is not needed because as soon as the command ends, the default command will continue moving it (at a different speed)
| @@ -0,0 +1,19 @@ | |||
| package frc.robot.parallels; | |||
There was a problem hiding this comment.
can we move the parallels and sequences folders to be under commands?
| import frc.robot.subsystems.FeederSubsystem; | ||
| import frc.robot.subsystems.HopperSubsystem; | ||
|
|
||
| public class RunHopperAndFeeder extends ParallelCommandGroup{ |
There was a problem hiding this comment.
should extend LoggableParallelCommandGroup, and then you will need to change the addCommands(...) to super(...)
Same comment for the other sequences.
|
|
||
| public class IntakeDownSequence extends SequentialCommandGroup{ | ||
| public IntakeDownSequence(IntakeDeployerSubsystem intakeDeployerSubsystem, IntakeSubsystem intakeSubsystem){ | ||
| addCommands( |
There was a problem hiding this comment.
talked to Lou, and we can do these in parallel to save time, so maybe:
sequential(setDeploymentState, parallel(InitialRunDeployment, SpinIntake))
| public class IntakeUpSequence extends SequentialCommandGroup{ | ||
| public IntakeUpSequence(IntakeDeployerSubsystem intakeDeployerSubsystem){ | ||
| addCommands( | ||
| new SetDeploymentState(intakeDeployerSubsystem, DeploymentState.UP), |
There was a problem hiding this comment.
we also want to stop the intake from spinning.
|
|
||
| SmartDashboard.putNumber("angler/TargetAngle", 0); | ||
|
|
||
| SmartDashboard.putData("RunIntakeAndFeeder", |
There was a problem hiding this comment.
change the name in the string to match the command
controller ideas discussed with sharon and bat-chen
tested on testbed and in simulation
added parallel command group to move hopper and feeder together (to shoot)
added sequential command group to set intake to down, bring intake down, and run intake
added sequential command group to set intake to up, and bring intake up