Skip to content

Made some suggestions for edits to code#1

Open
2025IanG wants to merge 1 commit intojmchs-robotics:mainfrom
2025IanG:main
Open

Made some suggestions for edits to code#1
2025IanG wants to merge 1 commit intojmchs-robotics:mainfrom
2025IanG:main

Conversation

@2025IanG
Copy link
Copy Markdown

Make sure that the motors actually know that they're supposed to stop

Make sure that when you update the shuffleboard, the code actually decides the speed. If you don't, the actual speed of the shake table won't update even if you press a different button on the shuffleboard

In the command, you'll notice I changed all the == 1.0 and == -1.0 to > 0.95 and < -0.95. This is just in case the joystick somehow doesn't output exactly 1 when it's pushed in a direction. The same also goes for why I did < 0.05 when telling it when to stop. HOWEVER, as I am typing this, I realize I made a mistake in my code. The < 0.05 should be `< 0.05 && > -0.05', because otherwise it wouldn't be able to go to the left or down.

Other than that, all I got rid of was just some unnecessary stuff, and I did some formatting just so I could read the code better.

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.

2 participants