Skip to content

Comments

created controller bindings#67

Open
RoRoBout212 wants to merge 11 commits intomainfrom
RT-controllerBindings
Open

created controller bindings#67
RoRoBout212 wants to merge 11 commits intomainfrom
RT-controllerBindings

Conversation

@RoRoBout212
Copy link
Contributor

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


@Override
public void end(boolean interrupted) {
subsystem.stopMotors();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also want to stop the intake from spinning.


SmartDashboard.putNumber("angler/TargetAngle", 0);

SmartDashboard.putData("RunIntakeAndFeeder",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the name in the string to match the command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants