Skip to content

Comments

lmk if i need to bind anything else#299

Open
zuesdajuice wants to merge 8 commits intomainfrom
293-create-cannon-bindings
Open

lmk if i need to bind anything else#299
zuesdajuice wants to merge 8 commits intomainfrom
293-create-cannon-bindings

Conversation

@zuesdajuice
Copy link
Contributor

No description provided.

@zuesdajuice zuesdajuice requested review from a team and Zane-122 February 21, 2026 18:16
@zuesdajuice zuesdajuice linked an issue Feb 21, 2026 that may be closed by this pull request
Meh243
Meh243 previously approved these changes Feb 21, 2026
Copy link
Contributor

@Meh243 Meh243 left a comment

Choose a reason for hiding this comment

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

LGTM

@Zane-122 Zane-122 requested a review from a team February 21, 2026 18:55
@zuesdajuice zuesdajuice requested review from a team and removed request for a team February 21, 2026 18:56
Copy link
Contributor

@Zane-122 Zane-122 left a comment

Choose a reason for hiding this comment

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

Also make sure that everything that needs to be implemented form cannon that is in the button bindings diagram is implemented

// TODO: Bind SmartClimb to Y, and bind manual climb to Joystick

// new Trigger(driver::getBButton).onTrue(turret.aimWithTarget(drivetrain, FieldConstants.getTargetData(FieldConstants.GOAL_POSITION)));
// new Trigger(driver::getBButton).onTrue(turret.aimWithTarget(drivetrain, FieldConstants.getTargetData(FieldConstants.GOAL_POSITION)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Do what these were doing before with cannon... they can't stay commen ted out. It would just be like cannon.turretAim() or soemthing.

.andThen(indexer.indexCommand(IndexerConstants.SPINDEXDER_POWER, IndexerConstants.TRANSFER_POWER))
.finallyDo(shooter::stop));

// new Trigger(copilot::getBButton).whileTrue(turret.aimWithTarget(drivetrain, FieldConstants.getTargetData(FieldConstants.GOAL_POSITION)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Here too

new Trigger(() -> copilot.getRightTriggerAxis() > DriveConstants.TRIGGER_DEADBAND).whileTrue(
collector.pivotCommand(CollectorConstants.DEPLOY_ANGLE));

new Trigger(() -> copilot.getRightTriggerAxis() > DriveConstants.TRIGGER_DEADBAND)
Copy link
Contributor

Choose a reason for hiding this comment

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

there are already default commands for this, we don't need this

Copy link
Contributor

@Zane-122 Zane-122 left a comment

Choose a reason for hiding this comment

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

Add any other bindings that are not currently implemented like hood down as x... even if they are not currently in robot container they have to be implemented in here.


// new Trigger(driver::getBButton).onTrue(turret.aimWithTarget(drivetrain, FieldConstants.getTargetData(FieldConstants.GOAL_POSITION)));
// new Trigger(driver::getBButton).onTrue(turret.aimWithTarget(drivetrain, FieldConstants.getTargetData(FieldConstants.GOAL_POSITION)));
new Trigger(() -> copilot.getBButton()).whileTrue(cannon.turretAim(FieldConstants.GOAL_POSITION));
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a default command... make this smart shot


new Trigger(() -> copilot.getRightTriggerAxis() > DriveConstants.TRIGGER_DEADBAND).whileTrue(
collector.pivotCommand(CollectorConstants.DEPLOY_ANGLE));

Copy link
Contributor

Choose a reason for hiding this comment

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

Just delete these

@zuesdajuice zuesdajuice self-assigned this Feb 21, 2026
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.

create cannon bindings

3 participants