Linear Actuator - #41
Conversation
zachwaffle4
left a comment
There was a problem hiding this comment.
You should be able to do the math directly on the Angle, Distance, and Per values without needing to convert to Doubles (ie, without needing .into/.magnitude).
Does that work? It looks like the units library doesn't declare those operator overloads, so I'm pretty confused if I'm interpreting this right. |
Yeah I dont think it's possible |
Signed-off-by: Zach Harel <zach@zharel.me>
Added a LinearActuator wrapper that holds a NextMotor and a distance-per-rotation Per.
It converts linear distances to rotations and calls NextMotor.setPositionSetpoint(Angle).