Glad I have more than six weeks with you.
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 08-02-2017, 04:13
Noam Noam is offline
Registered User
None #3034 (galileo)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Israel
Posts: 14
Noam is an unknown quantity at this point
programming mecanum

hi, our team is going to use mecanum wheels this year, but I dont really know how to program that
and when I tried to use the code from the examples, (actuators - mecanum drive) but it didn't worked - if I tried to drive forward or backward, so it works (but really bad) and sometimes after a few seconds (after forward / backward drive) so the robot is driving to the side (usually to the right) for 1-2 seconds
any code / advice / tips / etc ?
thanks in advance
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2017, 08:23
MuskieProgramme MuskieProgramme is offline
Registered User
FRC #6420
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 45
MuskieProgramme is an unknown quantity at this point
Re: programming mecanum

Put your robot on blocks, then test it. If it works as expected on blocks (ei wheels rotate correctly), then you can safely blame the building team.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2017, 12:18
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,797
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: programming mecanum

OK, first the obvious mechanical thing:
When you look at the robot from above, do the rollers form an "X" pattern? If looking from below, you should have a diamond pattern. If not, move wheels around.

Quote:
Originally Posted by MuskieProgramme View Post
Put your robot on blocks, then test it. If it works as expected on blocks (ei wheels rotate correctly), then you can safely blame the building team.
That's next - put it on blocks. If it isn't correct, note which direction each wheel rotates when driving forward, rotating right, and strafing right.
  • The left front wheel should go the same direction in all three cases.
  • The left rear wheel should go a different direction when strafing right than the other two cases.
  • The right rear wheel should go a different direction when rotating right than the other two cases.
  • The right front wheel should go a different direction when driving forward than the other two cases.

Move signal, code, or power wires to make the situation look like that list. Then, if any of the wheels are then rotating in reverse when driving forward, invert that motor controller.

If wheels change direction with the joystick in a constant location while on blocks, you have bigger issues. Send details and we'll help as best we can.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
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 15:34.

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