
26-01-2017, 19:59
|
 |
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
 FRC #5817 (Uni-Rex)
Team Role: Mentor
|
|
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 419
|
|
|
Re: "Split Arcade" Drive with Xbox 360 Controller?
Code:
robot_drive.arcadeDrive(xboxController.getY(Hand.kLeft), xboxController.getX(Hand.kRight));
This is assuming you've already made a RobotDrive object and an XboxController object, and that you are using Java.
__________________
My FRC History:
2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder
|