|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: How to use a fifth drive motor with RobotPy?
To do this you will need to do the following:
Initialize the new motor controller object in robotInit(): Code:
self.slide_motor = wpilib.Talon(INSERT_PORT_NUMBER_HERE) Use the x-axis of the Joystick to control the motor in teleopPeriodic(): Code:
self.slide_motor.set(self.joystick.getX()) |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|