Go to Post You can't simply bring another 100 teams into FIRST and have them all asking Andy Baker questions. - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2011, 23:14
vinnie's Avatar
vinnie vinnie is offline
Registered User
FRC #3309 (Friarbots)
Team Role: College Student
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Los Angeles / Anaheim
Posts: 107
vinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond repute
Mecanum Drive

We are having a lot of trouble with our mecanum drive system. We finally got 3 of the wheels to turn incredibly slowly but no one knows how we did it. We have no idea what our problem is. Our code is at http://code.google.com/p/servite-rob...tTemplate.java if anyone can look at it and help us out. The joystick input is recognized by the robot but doesn't control anything. (In the code it says arcade drive but that is because I commented out the non-working mecanumDrive to see if arcade drive would work but it did not)
  #2   Spotlight this post!  
Unread 27-01-2011, 00:57
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Mecanum Drive

If you guys are relatively inexperienced, I'd suggest taking it step by step.
  1. Install the mechanical components, test the gearboxes individually, and directly connected to a battery, with the robot up on blocks.
  2. Load the default code, see if the cRIO runs it and seems healthy.
  3. Connect the motors to the power distribution system, and install appropriate breakers one at a time (starting with the first Jaguar in the chain if using CAN), testing briefly to make sure it still runs when you connect an additional device. (This will prove that you haven't got issues with improperly-connected speed controllers fouling up the CAN chain, or anything like that.)
  4. Pretend your robot isn't a mecanum system, but instead a 4-wheel drive tank-drive robot with 2 independent gearboxes on each side. Set up the default code to implement that, and then load it and drive around a little.
  5. If everything works at that point, you can say with reasonable certainty that your issue is in code. Then we can really troubleshoot it.
  #3   Spotlight this post!  
Unread 27-01-2011, 02:09
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Mecanum Drive

http://www.chiefdelphi.com/forums/sh...ad.php?t=90080
  #4   Spotlight this post!  
Unread 28-01-2011, 23:11
vinnie's Avatar
vinnie vinnie is offline
Registered User
FRC #3309 (Friarbots)
Team Role: College Student
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Los Angeles / Anaheim
Posts: 107
vinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond reputevinnie has a reputation beyond repute
Re: Mecanum Drive

The problem was that I set the Jaguars to be speed-controlled, so RobotDrive was trying to set the Jaguars in the range of -1.0 to 1.0, so I fixed it by setting the Jaguars back to default percentVbus control mode.

Last edited by vinnie : 29-01-2011 at 21:48.
Closed Thread


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 23:32.

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