View Single Post
  #3   Spotlight this post!  
Unread 22-01-2017, 23:04
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 398
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: How Can I Use navX mxp to Rotate a Tank Drive?

Quote:
Originally Posted by Mahim View Post
In the navX sample code they used mecanum drive. But how can I rotate using a Tank Drive? In the PIDController it gives an output that is used in the mecanum drive. I was wondering if there is a way to somehow convert the output into the two different speeds to feed into the left and right motors to turn, and how can I do the math? Or is there a better way to do this?
Set one side to the output value, and the other side to negative output value
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote