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

Create Intake System #17

Open
Maayan-Luzon opened this issue Jan 24, 2024 · 1 comment
Open

Create Intake System #17

Maayan-Luzon opened this issue Jan 24, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Maayan-Luzon
Copy link
Contributor

The system:

  • One CANSparkMax controller
  • One constant speed to take the note (and negative one to release it)

Action:

  • Collect note
  • Release note
@Maayan-Luzon Maayan-Luzon added the enhancement New feature or request label Jan 24, 2024
@Maayan-Luzon
Copy link
Contributor Author

Now we have proximity sensor on this system. It will tell us whether we collected note or not. How can we access its value?

DigitalInput in = new DigitalInput(0);
boolean on = in.get();

Add the DigitalInput as an attribute in the intake class and a method which returns whether we collected note or not. Make sure it functions by using the shuffleboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants