|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Two Talons for Two Sets of Wheels
Hi! My team's robot has two sets of 3 wheels on each side. It's 6 in all. The left side is hooked up to a talon as well as the right. We are trying to get each game pad joystick to run each side seperately. In order to do this, would you assign each stick a talon, and have it so that when that joystick is pushed, the talons speed is set to a number? This is what I thought, but if anyone can show some sample code of our desired outcome, that would be great! Thank you guys so much!
![]() |
|
#2
|
|||||
|
|||||
|
Re: Two Talons for Two Sets of Wheels
Quote:
|
|
#3
|
|||
|
|||
|
Re: Two Talons for Two Sets of Wheels
After defining your Talons and Joystick objects in your Robot class, create a RobotDrive object like so:
Code:
RobotDrive drive = new RobotDrive(leftTalon, rightTalon); Code:
drive.tankDrive(leftJoystick, rightJoystick); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|