Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Working prototype with Hall Effect sensor #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SummitRobotics
Copy link
Collaborator

Robot can record and update number of magnetic pulses.
The robot can input distance in feet and output an approximate equivalent number of rotations.
Given motors A and B are set power, referencing the HallEffect class method will delay until point x has been reached.
Output of remaining left is still acting weird. I cannot update the SmartDashboard whilst in a while loop.

Also, no threads. You're welcome.

Robot can record and update number of magnetic pulses.
The robot can input distance in feet and output an approximate equivalent number of rotations.
Given motors A and B are set power, referencing the HallEffect class method will delay until point x has been reached.
Output of remaining left is still acting weird. I cannot update the SmartDashboard whilst in a while loop.
Copy link
Collaborator

@culled culled left a comment

Choose a reason for hiding this comment

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

Be careful with loops that run as fast as possible. Add a sleep command (remember the PID turning?) so that other stuff in the thread can update. I believe the iteration counter isn't working because you're only calling it once, right before your loop. Put it inside your while loop to have it update continually while the program waits. Also, read your conditions for your while statement carefully - they may not be doing what you want them to be doing...

realitii and others added 4 commits February 20, 2017 14:53
Additional RPM method implemented.
RPM function
Output for teleop
Simple change to program manager
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants