Go to Post Is this where I get to say "Mama I made it on TV?" - Pauline Tasci [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 19-01-2011, 17:59
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Mecanum - Cartesian problems

We're trying to set up strafing capability on our robot using the HolonomicDrive.vi, and we're running into some problems.

We tried simply wiring the X and Y axes from the drive into the X and Y inputs in the VI, but this merely makes the robots spin instead of strafe.

We've verified that our wheels are mounted correctly (X shape from above, Y from below), and the out-of-the-box Teleop.vi functions perfectly.

Our code's attached below. The False case has a simple ArcadeDrive.Vi with the inputs from the joystick.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	133
Size:	22.4 KB
ID:	9739  
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2011, 18:37
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Mecanum - Cartesian problems

You need to make sure the left motors are reversed in the begin VI.
If they are still not correct switch them around till you get the right direction.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2011, 19:34
ThisIsSparta's Avatar
ThisIsSparta ThisIsSparta is offline
Registered User
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Bloomington, IN
Posts: 17
ThisIsSparta is an unknown quantity at this point
Re: Mecanum - Cartesian problems

We've had the same problem trying to program our robot for Mecanum wheels. The Axes of the rotation and strafing have actually switched somehow.
Reversing the motors in the Begin VI changes the direction the robot moves, but doesn't change the actually motions used.
When we tried actually swaped the wires of the rotation and the x-strafing axis, more axes started switching and it gets really confusing.
We also have not messed with the code in any way, and have verified correct wheel position.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2011, 23:32
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Talking Re: Mecanum - Cartesian problems

for our mecanum drive last year I had to work through all the configurations to get the right direction by swapping all of the x, y and rotation as well as the Pwms in order to get the right configuration so if you don't figure it out by tomorrow
I will try to post the one I have that works!
Good Luck!
Jon
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2011, 16:10
ThisIsSparta's Avatar
ThisIsSparta ThisIsSparta is offline
Registered User
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Bloomington, IN
Posts: 17
ThisIsSparta is an unknown quantity at this point
Re: Mecanum - Cartesian problems

Posting that would be very helpful. We did manage to make a way that the drive move right by switching and inverting axes but since the axes are all messed up, when we tried to put a servo on another axes, it didnt even register.
Also when i pulled up the front panel of the joystickget VI the axes on that screen were all reading as they are suppost to be, not as it was outputing on the robot. Its all rather frustrating.
Oh the joys of being the only Programmer on a Rookie team!
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2011, 16:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Mecanum - Cartesian problems

Quote:
Originally Posted by ThisIsSparta View Post
...when we tried to put a servo on another axes, it didnt even register...
A servo requires power in order to work. Until you put a jumper on the "servo power" pins by the PWM output connector, the Digital Sidecar will not supply that power.

As for your axis confusion, you should probably start at the beginning. Make sure your 4 Motor Drive is opened with all the right PWM signals going to each corner of the robot. Make sure your motor controllers are actually wired with those PWM signals. Put the robot up on blocks and verify that each motor goes in the direction you expect when you drive forward and reverse. If some don't, use the "invert" options on the Drive Open appropriately to make them do what they should. Double-check that you have the wheels mounted correctly (the rollers should make a diamond pattern on the carpet, not an X).

Then try it again. If it doesn't work as you expect, don't just start changing things without thinking them through. Post your results here and let someone see if there's an obvious answer to your problem.
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2011, 22:31
Ceebs03 Ceebs03 is offline
Registered User
FRC #2621
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Bedford MA
Posts: 8
Ceebs03 is an unknown quantity at this point
Re: Mecanum - Cartesian problems

I believe you've wired you're x-axis to both the x input and the y input and you're y axis to nowhere.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2011, 11:46
MartinB MartinB is offline
Registered User
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: NJ
Posts: 14
MartinB is an unknown quantity at this point
Re: Mecanum - Cartesian problems

There is similar issues happening to us too. I attached the VI picture to this post of the teleop and where I call the motors.
Attached Thumbnails
Click image for larger version

Name:	not working.JPG
Views:	69
Size:	22.3 KB
ID:	9770  Click image for larger version

Name:	not working 2.JPG
Views:	78
Size:	19.3 KB
ID:	9771  
Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2011, 19:32
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Mecanum - Cartesian problems

I don't know if you've probed the throttle to see the value, or what type of joystick is being used, but if the throttle is nonzero, that would cause the robot to constantly spin.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 29-01-2011, 14:03
Ceebs03 Ceebs03 is offline
Registered User
FRC #2621
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Bedford MA
Posts: 8
Ceebs03 is an unknown quantity at this point
Re: Mecanum - Cartesian problems

Quote:
Originally Posted by MartinB View Post
There is similar issues happening to us too. I attached the VI picture to this post of the teleop and where I call the motors.
it looks like your front left motor is inverted and your back left motor is not inverted, which might be what's causing your problems
Reply With Quote
  #11   Spotlight this post!  
Unread 29-01-2011, 14:57
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: Mecanum - Cartesian problems

It turns out that the drive on our robot's motors were messing up, which caused the trouble with our strafing.
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 21:13.

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