Quote:
Originally Posted by JesseK
If you're talking about intuitive design, Talon's don't have 3 ports - PWMs do. It'd get particularly sticky if you had to do Talon SR vs SRX vs SP. I'd recommend doing robot.pwm.port3.set(1), then at instantiation determine what port 3 actually is and make sure that object has a set() method.
|
I don't know if the roboRIO does this but I know you couldn't with the sidecar because jaguars and talons/victors took different PWM wavelengths. The most intuitive would be something like this
Code:
robot.elevatorMotor = robot.pwm.port3
or, if you have to
Code:
robot.elevatorMotor = HAL.getMotor(3)