Go to Post Lets have fun this year - Wayne Doenges [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2017, 22:19
Mahim's Avatar
Mahim Mahim is offline
Registered User
FRC #4571 (Rambots)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: New York
Posts: 2
Mahim is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2017, 22:57
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 168
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Re: How Can I Use navX mxp to Rotate a Tank Drive?

Our drivetrain code should answer your question
__________________


Reply With Quote
  #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: 377
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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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