Go to Post The energy source of the future is brain power. - Michael R. Lee [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 22-02-2010, 15:16
mattom1992 mattom1992 is offline
Registered User
FRC #2072
 
Join Date: Feb 2010
Location: Houston
Posts: 11
mattom1992 is an unknown quantity at this point
Mecanum drive problems

We have been programming our robot in regards to driving, but are having problems getting all of our expected results. We are programming with the holonomic.vi and are controlling the robot with a 3-axis Logitech Extreme 3D Pro Joystick. As of right now, we are able to move forward, backwards, left, right, and in both a CW and CCW rotation. Our problems come in when we try to execute a left/right slide. Following is a list of how our robot acts in regards to joystick input:

Forward: All wheels forward
***Desired motion
Backward: All wheels backwards
***Desired motion
Left: No activity
***Would like to slide left
Right: No activity
***Would like to slide right
CCW turn: Robot turns CW
***Opposite of desired motion
CW turn: Robot turns CCW
***Opposite of desired motion

If anyone has any ideas on how we could fix this problem to allow our robot to slide, we would GREATLY appriciate it. In addition, if anyone has an idea of how to fix our inversion of our CW and CCW turns, that would be wonderful as well!!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2010, 15:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Mecanum drive problems

Quote:
Originally Posted by mattom1992 View Post
Left: No activity
***Would like to slide left
Right: No activity
***Would like to slide right
What does "No activity" mean? What is the LED on each Jag doing? What are the PWM indicators in the Driver Station showing?

Quote:
CCW turn: Robot turns CW
***Opposite of desired motion
CW turn: Robot turns CCW
***Opposite of desired motion
Just change the sign of the associated output from your joystick.



~

Last edited by Ether : 22-02-2010 at 16:11. Reason: spelling
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2010, 15:43
mattom1992 mattom1992 is offline
Registered User
FRC #2072
 
Join Date: Feb 2010
Location: Houston
Posts: 11
mattom1992 is an unknown quantity at this point
Re: Mecanum drive problems

Quote:
Originally Posted by Ether View Post
What does "No activity" mean? What is the LED on each Jag doing? What are the PWM indicators in the Driver Station showing?
When we move the joystick to the left or the right, none of the motors react to the command, hence the "no activity." All of the Jag's LEDs stay yellow and there is no movement in the wheels, and the PWM indicators don't show any changes either.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2010, 16:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Mecanum drive problems

Quote:
Originally Posted by mattom1992 View Post
When we move the joystick to the left or the right, none of the motors react to the command, hence the "no activity." All of the Jag's LEDs stay yellow and there is no movement in the wheels, and the PWM indicators don't show any changes either.
The default dashboard displays the joystick x-axis. Does it show any response to your left/right joystick motions? Remember that the dashboard updates only once per second.


~
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2010, 19:09
mattom1992 mattom1992 is offline
Registered User
FRC #2072
 
Join Date: Feb 2010
Location: Houston
Posts: 11
mattom1992 is an unknown quantity at this point
Re: Mecanum drive problems

Quote:
Originally Posted by Ether View Post
The default dashboard displays the joystick x-axis. Does it show any response to your left/right joystick motions? Remember that the dashboard updates only once per second.
There isn't any response at all given in the display when the joystick is moved left/right.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2010, 08:32
shutchman shutchman is offline
Senior Design Engineer
FRC #2107
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Norfolk, VA USA
Posts: 8
shutchman is an unknown quantity at this point
Re: Mecanum drive problems

what kind of code do you have for your joystick control. we were able to get some wheel movement using the std attack3, but unable to get movement with our code using extreme 3D pro. We will still be working on code, even after the bot ships today. ...Building a test bed w/ the RIO to get the joystick interface worked out with the Mecanum wheels.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2010, 10:00
mattom1992 mattom1992 is offline
Registered User
FRC #2072
 
Join Date: Feb 2010
Location: Houston
Posts: 11
mattom1992 is an unknown quantity at this point
Re: Mecanum drive problems

Quote:
Originally Posted by shutchman View Post
what kind of code do you have for your joystick control.
Here's a screenshot of our current code for joystick control using the Extreme 3D Pro joystick.
Attached Thumbnails
Click image for larger version

Name:	code.JPG
Views:	154
Size:	23.4 KB
ID:	8784  
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2010, 12:41
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,112
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 drive problems

Quote:
Originally Posted by mattom1992 View Post
Here's a screenshot of our current code for joystick control using the Extreme 3D Pro joystick.
No wonder you aren't getting any noticeable directional control. The "Mecanum - Polar" vi wants a direction specified in degrees. You're giving it the X axis of your joystick, which only ranges from -1 to 1.

I think all you need to do is change it to "Mecanum - Cartesian" and it should work as you expect. (You might also have to negate the sign of your rotation input, depending on whether your joystick twist has positive values to the left or to the right.)

Last edited by Alan Anderson : 23-02-2010 at 12:46.
Reply With Quote
  #9   Spotlight this post!  
Unread 23-02-2010, 14:06
mattom1992 mattom1992 is offline
Registered User
FRC #2072
 
Join Date: Feb 2010
Location: Houston
Posts: 11
mattom1992 is an unknown quantity at this point
Re: Mecanum drive problems

We just switched the holonomic drive from "Polar" to "Cartesian" and everything is working properly now. Thanks for all of the help!!
Reply With Quote
  #10   Spotlight this post!  
Unread 27-01-2013, 14:27
cmcmaho cmcmaho is offline
Registered User
FRC #3784
 
Join Date: Jan 2013
Location: Springfield MO
Posts: 3
cmcmaho is an unknown quantity at this point
Re: Mecanum drive problems

We are also having problems getting the mecanum drive to work. We are using the based Labview Holonimic VI. We are using a Logitech Extreme 3D Pro single joystick with X Y and Axis 3 Throttle. In reading this post we did confirm that we have it set to Mecanum - Cartesian.

Only two of the 4 wheels spin. We are using Talons. Does not seem to be an electrical issue and appears to be a code problem.

Please help
Thanks
Reply With Quote
  #11   Spotlight this post!  
Unread 27-01-2013, 14:55
vhcook's Avatar
vhcook vhcook is online now
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Mecanum drive problems

Quote:
Originally Posted by cmcmaho View Post
We are also having problems getting the mecanum drive to work. We are using the based Labview Holonimic VI. We are using a Logitech Extreme 3D Pro single joystick with X Y and Axis 3 Throttle. In reading this post we did confirm that we have it set to Mecanum - Cartesian.

Only two of the 4 wheels spin. We are using Talons. Does not seem to be an electrical issue and appears to be a code problem.

Please help
Thanks
I'm going to start with the easy question: Which two wheels are moving?

Are your PWM cables plugged into the same ports you specified in Begin.VI?

What color are the LEDs on your Talons when you try to drive forward?

Last edited by vhcook : 27-01-2013 at 14:56. Reason: better first question
Reply With Quote
  #12   Spotlight this post!  
Unread 28-01-2013, 23:49
cmcmaho cmcmaho is offline
Registered User
FRC #3784
 
Join Date: Jan 2013
Location: Springfield MO
Posts: 3
cmcmaho is an unknown quantity at this point
Re: Mecanum drive problems

Hello and thank you for the quick reply
We worked on the bot some more this evening and detrimined that our CRio is the problem. We were getting only two wheels to run at any given time. We could switch around the pwm cables and get different wheels to run but only two at any given time. After a process if elimination we switched out the crio base unit and it worked.
We have two of the wheels on the left side going the wrong direction but we think we can correct this by switching the pwm settings around ?
Thanks very much
Reply With Quote
  #13   Spotlight this post!  
Unread 29-01-2013, 07:23
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,751
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 drive problems

That doesn't seem likely to be the problem. I suspect that the issue was resolved when you rewired or will show up again.

Do you have power plugged into the digital sidecar? Without power, the unit will often be able to drive a few speed controllers, but not four.

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 29-01-2013, 14:00
vhcook's Avatar
vhcook vhcook is online now
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Mecanum drive problems

Quote:
Originally Posted by cmcmaho View Post
We have two of the wheels on the left side going the wrong direction but we think we can correct this by switching the pwm settings around ?
Thanks very much
The easiest way to fix this is to go into begin.vi and use the invert settings on the 4 Wheel Drive Open.
Reply With Quote
  #15   Spotlight this post!  
Unread 30-01-2013, 22:30
cmcmaho cmcmaho is offline
Registered User
FRC #3784
 
Join Date: Jan 2013
Location: Springfield MO
Posts: 3
cmcmaho is an unknown quantity at this point
Re: Mecanum drive problems

Quote:
Originally Posted by vhcook View Post
The easiest way to fix this is to go into begin.vi and use the invert settings on the 4 Wheel Drive Open.
We seemed to have had our problem fixed, all 4 wheels ran after we tried another crio. But after I deployed the same program with minor changes to the non drive teliop system (adding some spikes), as soon as I enabled it it would run all wheels full speed for a second and then stop and I could not controll it. But if you enable it with the joystick moved ahead it will run however you want it to until you let go then it will lock up again. I uploaded three programms (one completely new one) and nothing worked. I think we had this problem last year. Any ideas?
Thanks!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
crab drive vs. mecanum drive system superbotman Technical Discussion 33 06-01-2010 03:09
Mecanum drivetrain programming problems Mr. Freeman Programming 4 21-03-2007 17:11
Mecanum problems Ian_Xodus General Forum 8 01-02-2007 08:31
pic: Jester Drive:Mecanum Wheel Drive Train Ken Delaney 357 Technical Discussion 64 29-03-2006 22:16


All times are GMT -5. The time now is 11:01.

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