Skip to content

Potential fix for x button of doom bug#5

Open
tscofield wants to merge 2 commits into
Intake-Loadfrom
intake-Load-Xofdoom
Open

Potential fix for x button of doom bug#5
tscofield wants to merge 2 commits into
Intake-Loadfrom
intake-Load-Xofdoom

Conversation

@tscofield

Copy link
Copy Markdown

This is a potential fix for the X Button of Doom bug. It documents the various states of the code in a comment and then steps through those in code. It moves the motor stop and motor run to functions so they can be called by various logic branches. And then stops and resets everything when finished.

@tscofield

Copy link
Copy Markdown
Author

Another and possibly simpler option may be to use the waituntilcommand function

https://docs.wpilib.org/en/2022/docs/software/commandbased/convenience-features.html#waituntilcommand

waituntilcommand(sensor.get == true)
waituntilcommand(sensor.get == false)
waituntilcommand(sensor.get == true)
stopmotors

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