Go to Post ...our football team was a state champion, but i don't see -them- going to atlanta and winning there! :D - Sam Lipscomb [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-2011, 11:37
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
Holonmic VI not Working Properly Mechanum Drive

I was testing out the homonymic VI on the mechanum wheels we have and when I was telling it to strafe (I am using Cartesian mode, so that means sending a value to X) it was rotating and when I was trying to rotate, it strafed. Forward and backwards works, but the unexpected behavior is a little weird. Has there been any changes to the VI behind the scenes that would cause this? Thank you in advance for information.
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2011, 19:28
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: Holonmic VI not Working Properly Mechanum Drive

It sounds a bit like the axes from the joystick are flipped. Can you probe them, or isolate them to determine if that is the problem?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2011, 19:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Holonmic VI not Working Properly Mechanum Drive

Quote:
Originally Posted by Greg McKaskle View Post
It sounds a bit like the axes from the joystick are flipped. Can you probe them, or isolate them to determine if that is the problem?

Greg McKaskle

I think he has the vi wired incorrectly, but I don't have LabVIEW installed here so I can't check it.

See the first JPG attachment to this post.


Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2011, 19:53
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: Holonmic VI not Working Properly Mechanum Drive

I blame the joystick, its wired backwards because the joystick sends a -1 when its pushed foward and a 1 when its pushed backwards. So in testing it this way by sight, fowards should have been backwards on the joystick because of these mixed signals. Thanks for your help.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2011, 07:12
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: Holonmic VI not Working Properly Mechanum Drive

It isn't the joystick, it is HID. They define forward as negative. My guess is that they were thinking airplane flight stick ... It is just a convention anyway.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2011, 17:37
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: Holonmic VI not Working Properly Mechanum Drive

Quote:
Originally Posted by MartinB View Post
So in testing it this way by sight, fowards should have been backwards on the joystick because of these mixed signals. Thanks for your help.
The Cartesian Mecanum Drive vi helpfully accounts for the "negative is forward" convention of a joystick.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-01-2011, 00:47
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: Holonmic VI not Working Properly Mechanum Drive

I wasn't paying much thought towards the motors when I was designing the diagrams to think I was switching the motors. I'll test out completely switching the true and falses when I get to test again.

Edit:
Got it working, here is a link to see the resulting change on our test bed http://www.youtube.com/watch?v=mhM_RQoiQXY
I still need to some more coding to iron out some of the problems, but I think I am doing well considering I am the only team member using labview and programming for autonomyous.

Last edited by MartinB : 24-01-2011 at 21:16.
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2011, 17:35
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: Holonmic VI not Working Properly Mechanum Drive

Quote:
Originally Posted by MartinB View Post
...when I was telling it to strafe (I am using Cartesian mode, so that means sending a value to X) it was rotating and when I was trying to rotate, it strafed. Forward and backwards works, but the unexpected behavior is a little weird.
This might happen if you have your left and right motors swapped at one end. make absolutely certain that what you're telling the Open Four Motor Drive matches the reality of your robot.
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:18.

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