View Single Post
  #11   Spotlight this post!  
Unread 26-01-2017, 21:57
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 336
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: "Split Arcade" Drive with Xbox 360 Controller?

Quote:
Originally Posted by Xavbro View Post
After you've done that, you can tune the values for deadzones and such as needed. You would then use those values to apply to the drive motors as such:

leftMotor1.set((rotate + straight));
leftMotor2.set((rotate + straight));
rightMotor1.set(rotate - straight));
rightMotor2.set((rotate - straight));
Or you could just use WPILib's own RobotDrive->ArcadeDrive function.
Reply With Quote