Skip to content

TimBot - Elevation control #5

Description

@dlaufen

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions