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

TimBot - Elevation control #5

Open
dlaufen opened this issue Sep 26, 2024 · 0 comments
Open

TimBot - Elevation control #5

dlaufen opened this issue Sep 26, 2024 · 0 comments
Assignees

Comments

@dlaufen
Copy link
Contributor

dlaufen commented Sep 26, 2024

TimBot needs a servo built to raise and lower the shooter's elevation.

Motor Controller - SparkMax
Motor is 12v brushed
Feedback - resister voltage measured from Rio analog in.

This linear actuator is not a normal component that we use. It has an embedded motor and potentiometer. One approach would be to adapt/extend the NEOServo class to support voltage as a feedback.

Internal API suggestions:

  • convert analog voltage to cm extension
  • calculate angle from geometry

Public API Sketch:
SetElevation(double angle_deg)
bool IsAtAngle()

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

No branches or pull requests

3 participants