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()
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:
Public API Sketch: SetElevation(double angle_deg) bool IsAtAngle()