Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   How Can I Use navX mxp to Rotate a Tank Drive? (http://www.chiefdelphi.com/forums/showthread.php?t=154110)

Mahim 22-01-2017 22:19

How Can I Use navX mxp to Rotate a Tank Drive?
 
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?

orangelight 22-01-2017 22:57

Re: How Can I Use navX mxp to Rotate a Tank Drive?
 
Our drivetrain code should answer your question

euhlmann 22-01-2017 23:04

Re: How Can I Use navX mxp to Rotate a Tank Drive?
 
Quote:

Originally Posted by Mahim (Post 1634949)
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


All times are GMT -5. The time now is 21:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi