Skip to content

Refactor indexer to trigger subsystem and update related components#33

Open
PillageDev wants to merge 1 commit intodevelopfrom
32-refractor-indexer-to-trigger
Open

Refactor indexer to trigger subsystem and update related components#33
PillageDev wants to merge 1 commit intodevelopfrom
32-refractor-indexer-to-trigger

Conversation

@PillageDev
Copy link
Member

@PillageDev PillageDev commented Feb 25, 2026

Rename the indexer class to trigger class, which is the correct name of the mechanism

@PillageDev PillageDev requested review from a team February 25, 2026 19:44
@PillageDev PillageDev linked an issue Feb 25, 2026 that may be closed by this pull request
@bjmcternan
Copy link
Contributor

What is this pull request about? What is the purpose? Please fill out the description

@bjmcternan bjmcternan self-requested a review February 25, 2026 20:18
if (proximitySensor.get()) {
triggerIO.setSpeed(0.0);
} else {
triggerIO.setSpeed(triggerSpeed);
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this have the trigger on all the time?

Copy link
Contributor

@bjmcternan bjmcternan left a comment

Choose a reason for hiding this comment

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

Activating when there's a ball present means we're pushing balls up all the time. I'm not sure this logic is correct

@AutoLog
public static class IndexerIOInputs extends BaseInputClass {
public static class TriggerIOInputs extends BaseInputClass {
public double motorRps = 0.0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add the prox sensor reading as well

this.vision = new Vision(drivetrain);
this.intake = new Intake(drivetrain);
this.indexer = new Indexer(2);
this.trigger = new Trigger(2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not use a magic number here. Let's make this a final value

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not seeing a method for "firing" or not. Shouldn't we have that here?

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.

Refractor "indexer" to "trigger"

3 participants