Go to Post I guess it all just goes back to the fact that you need to finish your robot before it goes in the crate. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-12-2015, 20:25
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Mecanum programming (java if it maters)

We are testing mecanum drive train in our preseason. Our wheels make an X when viewed from the top. We are using an xbox controller with one stick controling forward reverse (axis 0, axis 1 respectively) and axis 4 for rotation. Our forward/reverse and strife side to side work flawlessly. Our rotation does not. Seems the command is sent to the wheels 90 deg out of order. The motor spin is like strife only exactly wrong. Does this make sense? Do you have any insight?


Update :
We figured it out. We had the wrong two motors inverted. During rotation running the two rear motors where inverted. Turns out the left two motors required inverting.

Last edited by cpapplefamily : 08-12-2015 at 21:08.
  #2   Spotlight this post!  
Unread 08-12-2015, 21:29
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 597
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Mecanum programming (java if it maters)

So then you're good? No more mecanum questions?
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #3   Spotlight this post!  
Unread 09-12-2015, 13:59
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 119
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Re: Mecanum programming (java if it maters)

Even though you already solved it, I just wanted to add that the very first thing we do when debugging mecanum is disconnect every motor controller except one and try every direction, just to see if the wheel is spinning correctly. Rinse and repeat for every other wheel. That way you don't have to think to hard to find the wheels which are wired backwards.
__________________
FRC 2576 2015-2016: Mentor
FRC 2576 2013-2015: Programmer & Chairman's Presenter

Los Angeles Regional 2014: Regional Chairman's Award
  #4   Spotlight this post!  
Unread 12-12-2015, 19:03
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Mecanum programming (java if it maters)

Thanks for chiming in with the tips. These pointer are good for any instance of robot code.
  #5   Spotlight this post!  
Unread 12-12-2015, 19:17
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,101
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: Mecanum programming (java if it maters)

I'll also mention that it's usually a good idea to initially test any drivetrain on blocks. In 2010 I think it was, we were doing mecanum for the first time, and using a 3-axis stick. We were confused as to why wheels where moving (seemingly full-tilt) when the stick was at neutral.

Turns out the axis at the base of the joystick was "twist" and "z" (I think), but the actual "twist" axis was called "throttle". So even if you think you know what you're doing, things can surprise you.
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

  #6   Spotlight this post!  
Unread 14-12-2015, 14:57
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Mecanum programming (java if it maters)

Quote:
Originally Posted by Christopher149 View Post
I'll also mention that it's usually a good idea to initially test any drivetrain on blocks. In 2010 I think it was, we were doing mecanum for the first time, and using a 3-axis stick. We were confused as to why wheels where moving (seemingly full-tilt) when the stick was at neutral.

Turns out the axis at the base of the joystick was "twist" and "z" (I think), but the actual "twist" axis was called "throttle". So even if you think you know what you're doing, things can surprise you.
You quickly figure that one out on your own BUT NEEDS TO BE NOTED. I had my first ever PID controlled drive train attack me. Encoders needed to be reversed. Error ran away
Closed Thread


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 03: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