Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Indexer and Intake subsystems in simulation #15

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

GreenTomato5
Copy link
Collaborator

@GreenTomato5 GreenTomato5 commented Jan 2, 2025

Fix sim

@GreenTomato5 GreenTomato5 requested a review from PotmanNob January 2, 2025 03:21
Copy link
Contributor

@PotmanNob PotmanNob left a comment

Choose a reason for hiding this comment

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

looks good maybe

@@ -101,6 +101,16 @@ public void setState(StateType state) {
this.state = state;
}

// TODO: This is mad goofy
// For if you need to override set state
public void manualSetState(StateType state) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why cant we use the regular setState method?

Copy link
Contributor

Choose a reason for hiding this comment

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

use abstract classes young buck. default is BUM 🤮 🤮 🤮

@PotmanNob
Copy link
Contributor

also check if it works in sim. im too lazy to do so

import frc.robot.subsystems.Indexer.IndexerStates;

public enum IndexerInterfaceStates implements SubsystemStates {
SCORING("SCORING"),
Copy link
Member

Choose a reason for hiding this comment

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

State strings should prob be "humanized" -- "Scoring", "Off", etc.

return io.hasGamepiece();
}

public double getStateTime() {
Copy link
Member

Choose a reason for hiding this comment

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

if you want to do this often you could just make getStateTime public in Subsystem

@@ -0,0 +1,36 @@
package frc.robot.subsystems.Indexer.IndexerManager;
Copy link
Member

Choose a reason for hiding this comment

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

If this is called IndexerInterface you should rename the folder + package too

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.

3 participants