-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
…imulation features zzzzzzzzzzzz
…-Progathon into Intaking-stuff-sim
…-Progathon into Intaking-stuff-sim
…-Progathon into Intaking-stuff-sim
…-Progathon into Intaking-stuff-sim
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 🤮 🤮 🤮
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"), |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
Fix sim