Go to Post As we all know, a low Center of Gravity is a beautiful thing. - Andy Baker [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-01-2014, 22:35
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: mecanum drive and joystick

Check your motor controllers to make sure they are plugged into the correct spots on the Digital Sidecar. If that doesn't help, remember that 2 of the motors must be inverted in Begin.vi for it to work correctly (I generally invert both left motors. If they all function correctly, but the joystick is backwards, then invert the other two instead.) Hover over the Open 4 Motors.vi and you will see 4 green dots (2 on top and 2 on bottom) that reference the inversions.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2014, 23:35
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: mecanum drive and joystick

Ok ill try that out thank you, also this is my begin if you think there can be any changes.
Attached Thumbnails
Click image for larger version

Name:	begin.png
Views:	40
Size:	64.2 KB
ID:	15931  
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2014, 22:06
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: mecanum drive and joystick

Quote:
Originally Posted by Cecil View Post
Check your motor controllers to make sure they are plugged into the correct spots on the Digital Sidecar. If that doesn't help, remember that 2 of the motors must be inverted in Begin.vi for it to work correctly (I generally invert both left motors. If they all function correctly, but the joystick is backwards, then invert the other two instead.) Hover over the Open 4 Motors.vi and you will see 4 green dots (2 on top and 2 on bottom) that reference the inversions.
do they have to be set to true or false for to be inverted?
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2014, 23:50
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: mecanum drive and joystick

Quote:
Originally Posted by Team3993Tom View Post
do they have to be set to true or false for to be inverted?
True means it is inverted. Basically, you have to do this because motors face the opposite direction on different sides of the robot. The same concept can be achieved by setting all motor inversions to False and swapping the leads of the motor around at the motor controllers on one side of the robot. (Note: Do NOT swap the power leads leading from the Power Distribution board. If you decide to go this route, only swap the leads on the motor side of the speed controller.)

If you are going the code route, two of them should be inverted. Just make sure they are both from the same side (either right or left), not front and back inverted from each other.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2014, 00:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: mecanum drive and joystick

Another thing to check on is the mapping of your joystick axes.
They may not match what LabVIEW is calling axis 1,2, & 3 and it's easy to verify with Joystick Explorer or your own front panel.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2014, 20:14
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: mecanum drive and joystick

Quote:
Originally Posted by Cecil View Post
True means it is inverted. Basically, you have to do this because motors face the opposite direction on different sides of the robot. The same concept can be achieved by setting all motor inversions to False and swapping the leads of the motor around at the motor controllers on one side of the robot. (Note: Do NOT swap the power leads leading from the Power Distribution board. If you decide to go this route, only swap the leads on the motor side of the speed controller.)

If you are going the code route, two of them should be inverted. Just make sure they are both from the same side (either right or left), not front and back inverted from each other.
ok so it now works but how do I get it to go diagonally?
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2014, 20:33
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: mecanum drive and joystick

Diagonal movement is a combination of left/right and forward/back motion. Try pushing your joystick to the upper left or right corner. It should move diagonally in that direction.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2014, 23:02
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: mecanum drive and joystick

lol yah we found that out. Thank you for all the help and thank you for dealing with my stupid questions.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2014, 23:17
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: mecanum drive and joystick

Quote:
Originally Posted by Team3993Tom View Post
lol yah we found that out. Thank you for all the help and thank you for dealing with my stupid questions.
No problem. That's what we are here for.
__________________
I'm right 90% of the time, so why worry about the other 3%?
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 09:53.

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