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

Mech-OffSeason-2024 #13

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

Mech-OffSeason-2024 #13

wants to merge 52 commits into from

Conversation

Adbritto
Copy link

@Adbritto Adbritto commented Nov 7, 2023

added Code for new intake design

Copy link
Contributor

@AG6GR AG6GR left a comment

Choose a reason for hiding this comment

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

I assume you've already reviewed the FSM? I've just looked at the implementation.

src/main/java/frc/robot/TeleopInputXBox.java Outdated Show resolved Hide resolved
*/
public boolean handleAutoOuttakingState() {
if (!autoOuttakingTimerStarted) {
autoOuttakingTimerStarted = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need autoOuttakingTimerStarted, you can just check if the timer value is equal to 0. Also if you need a new timer make a new timer, no need to share a timer with the other code.


currentState = nextState(input);

currentTime = Timer.getFPGATimestamp();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need the overrun detection code?

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.

5 participants