Skip to content

TimBot - Elevation control #5

@dlaufen

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

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