Go to Post What if my teams drive train isn't an option? - MARS_James [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
  #16   Spotlight this post!  
Unread 28-01-2015, 17:39
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 Trouble

Swap them in Begin, making the inputs to the Open 4 Motor Drive match the actual motors on the robot.
Reply With Quote
  #17   Spotlight this post!  
Unread 28-01-2015, 18:15
Dawg2T4's Avatar
Dawg2T4 Dawg2T4 is offline
Registered User
AKA: Chandler Douglas
FRC #3556 (GET SMART)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Lake City, Fl.
Posts: 31
Dawg2T4 is an unknown quantity at this point
Re: Mecanum Trouble

Sending the robot a clockwise signal makes all of the wheels turn inward towards each other. When we made the change for the motor commands all it did was changed the strafing to the all in/out command and changed what we wanted the rotation to be to strafing.
__________________
- Chander, star of Frisbeez in the Trap

http://www.youtube.com/watch?v=3bM_Sv3xJ54
Reply With Quote
  #18   Spotlight this post!  
Unread 28-01-2015, 18:29
Dawg2T4's Avatar
Dawg2T4 Dawg2T4 is offline
Registered User
AKA: Chandler Douglas
FRC #3556 (GET SMART)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Lake City, Fl.
Posts: 31
Dawg2T4 is an unknown quantity at this point
Re: Mecanum Trouble

Here's a screenshot of our code, just to reiterate, this is the code that has forward, backward, and strafing correct but has a problem with rotating. When we try to rotate clockwise the robots wheels all run inward (meaning, the two front wheel go backward and the two back wheels go forward) and when we try to rotate counterclockwise the wheels go outward (the two front go forward and the two back go backward).

Begin

[IMG][/IMG]

Holonomic

[IMG][/IMG]

Teleop

[IMG][/IMG]
__________________
- Chander, star of Frisbeez in the Trap

http://www.youtube.com/watch?v=3bM_Sv3xJ54
Reply With Quote
  #19   Spotlight this post!  
Unread 28-01-2015, 18:42
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: Mecanum Trouble

Quote:
Originally Posted by Dawg2T4 View Post
Sending the robot a clockwise signal makes all of the wheels turn inward towards each other.
If that's the case, the change you should have made, according to previous posts, is to swap the FrontLeft and BackRight motor commands. Is that what you did?

If not, undo what you did and make the correct change.



Quote:
Originally Posted by Ether View Post
PS: you never did answer this post. It's important; it determines which motor commands should be swapped.
Quote:
Originally Posted by Ether View Post
What he needs to do is swap the FrontRight and BackLeft motor commands (if the rotate clockwise command is causing the wheels to turn "outward") or swap the FrontLeft and BackRight motor commands (if the rotate clockwise command is causing the wheels to turn "inward").
Quote:
Originally Posted by Ether View Post
If a rotate clockwise command causes all the wheels to run outward you need to swap the FrontRight and BackLeft motor commands.

If a rotate clockwise command causes all the wheels to run inward you need to swap the FrontLeft and BackRight motor commands.

Last edited by Ether : 28-01-2015 at 19:00.
Reply With Quote
  #20   Spotlight this post!  
Unread 28-01-2015, 19:40
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: Mecanum Trouble

Quote:
Originally Posted by Dawg2T4 View Post
Sending the robot a clockwise signal makes all of the wheels turn inward towards each other. When we made the change for the motor commands all it did was changed the strafing to the all in/out command and changed what we wanted the rotation to be to strafing.
What change did you make?

Looks like the change was not done properly.

Please post LabVIEW png snippet of before & after code.


Reply With Quote
  #21   Spotlight this post!  
Unread 28-01-2015, 19:40
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

Quote:
Originally Posted by Ether View Post
If that's the case, the change you should have made, according to previous posts, is to swap the FrontLeft and BackRight motor commands. Is that what you did?
Yes that is what we have done, we have tried it swapped and not swapped and neither ways work, when swapped if we give a pure clockwise command both sides run inward, sorry if I am repeating things, I just want to make sure everything is clear,
-Jack
Reply With Quote
  #22   Spotlight this post!  
Unread 28-01-2015, 19:56
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

Quote:
Originally Posted by Ether View Post
What change did you make?

Looks like the change was not done properly.

Please post LabVIEW png snippet of before & after code.



Before:
http://s278.photobucket.com/user/Daw...tml?sort=3&o=1

After:
http://s278.photobucket.com/user/Daw...tml?sort=3&o=0

Last edited by REDBARON : 28-01-2015 at 20:19.
Reply With Quote
  #23   Spotlight this post!  
Unread 28-01-2015, 20:12
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: Mecanum Trouble

Quote:
Originally Posted by Dawg2T4 View Post
Sending the robot a clockwise signal makes all of the wheels turn inward towards each other. When we made the change for the motor commands all it did was changed the strafing to the all in/out command and changed what we wanted the rotation to be to strafing.
I don't know what change you made, but it didn't swap the suggested motor commands. The behavior described above is not consistent with the change suggested.

Swapping the FL&BR motor commands should have had no impact at all on the strafe command. And it should have corrected the rotate behavior.

This is assuming that you have provided accurate test data about wheel direction in response to fwd/rev and strafe left/right as shown in the attached chart.

Would you please post the before and after code as a LabVIEW PNG snippet as an attachment here on CD.


Attached Thumbnails
Click image for larger version

Name:	FL&BR SWAP.png
Views:	6
Size:	18.7 KB
ID:	18032  

Last edited by Ether : 28-01-2015 at 20:14.
Reply With Quote
  #24   Spotlight this post!  
Unread 28-01-2015, 20:19
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

Sorry, had some problem with posting the picture of the code. It's updated now with a link to each instance of the code.
Reply With Quote
  #25   Spotlight this post!  
Unread 28-01-2015, 20:24
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

Quote:
Originally Posted by Ether View Post
Swapping the FL&BR motor commands should have had no impact at all on the strafe command. And it should have corrected the rotate behavior.
Strafing worked fine, it was during rotation (specifically clockwise) that both sides turned inward.

Last edited by REDBARON : 28-01-2015 at 20:27.
Reply With Quote
  #26   Spotlight this post!  
Unread 28-01-2015, 20:33
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: Mecanum Trouble

Quote:
Originally Posted by Dawg2T4 View Post
When we made the change for the motor commands all it did was changed the strafing to the all in/out command and changed what we wanted the rotation to be to strafing.
Quote:
Originally Posted by Ether View Post
Swapping the FL&BR motor commands should have had no impact at all on the strafe command. And it should have corrected the rotate behavior.
Quote:
Originally Posted by REDBARON View Post
Strafing worked fine, it was during rotation (specifically clockwise) that both sides turned inward.
????


Reply With Quote
  #27   Spotlight this post!  
Unread 28-01-2015, 20:38
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

Here are the attachments, in order before and after.
Attached Thumbnails
Click image for larger version

Name:	Change Not Made.png
Views:	13
Size:	30.9 KB
ID:	18033  Click image for larger version

Name:	Change Made.png
Views:	10
Size:	31.5 KB
ID:	18034  
Reply With Quote
  #28   Spotlight this post!  
Unread 28-01-2015, 20:45
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

Quote:
Originally Posted by Ether View Post
????


Sorry there was a miscommunication. With the motors FL & BR switched strafing and forward/backward work fine but rotation does not work, with them not switched, using rotation buttons causes strafing, and strafing fights itself.
The miscommunication was that the "change" in question was not clearly defined, as we had already left yesterday with that change made and the rotation still wasn't working. Sorry about that.
Reply With Quote
  #29   Spotlight this post!  
Unread 28-01-2015, 21:00
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 Trouble

Hold on a second, I think I know what's going on. On the "Open 4 Motor.vi", there are actually 4 terminals to invert motors. It looks like you have both of the bottom ones set to true and the top two unwired (which defaults to false). This would mean that Both your front left and front right motors are inverted, but not the other ones. Your inversions should match on sides, not front to back. I have attached a photo that should explain it a bit better.

Try going back to the default code (run the wires directly from the joystick axes to the holonomic vi) and see if inverting the correct motors fixes everything for you. If you push the joystick forward, and the robot moves backwards, switch the inversions to the right side instead.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	15
Size:	6.7 KB
ID:	18035  
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #30   Spotlight this post!  
Unread 30-01-2015, 18:32
REDBARON's Avatar
REDBARON REDBARON is offline
Registered User
AKA: Jack
FRC #3556 (Get Smart)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: FL
Posts: 16
REDBARON is an unknown quantity at this point
Re: Mecanum Trouble

We've sorted out the rotation problems by coding in a button that switches to arcade and using that to rotate, however we have noticed that strafing remains on the x-axis. but the y-axis causes rotation. we would like to resolve this and have the y-axis remain the same and the x-axis change
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 20:09.

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