![]() |
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!:)
|
Re: Two Talons for Two Sets of Wheels
Quote:
|
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); |
| All times are GMT -5. The time now is 10:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi