We purchased two of these to adjust our shooter hood, and though looking at the API, it looked like it would not work without some trial and error, I just wanted to let you all know that robotpy is so amazing, with a few minor modifications, the sample code (Java)works out of the box in Python too.
#In robot Init or robot map self.yourActuator = wpilib.Servo(YOUR_ACTUATOR_CHANNEL) self.yourActuator.setBounds(2.0, 1.8, 1.5, 1.2, 1.0) # In the method you want to use to control your servo... self.yourActuator.set(1.0) #to open self.yourActuator.set(0) # to close Note: this is a bit different than the example found at (https://www.chiefdelphi.com/t/anyone-have-servo-example-code/155951/7) , we did not use -1, but 0 as the lower limit because we were setting the actual distance.
Servo.get() method also works well for tuning purposes if you want to use the sample code method
Servo.setSpeed(-1>some_float <1) then the get method to see which numbers are the best for your task.
I also want to give Andymark props for not only creating such excellent hardware and having the excellent customer service to help us figure out which hardware we needed, but also for updating the CD links.