Go to Post "What other program puts these role models on a first name basis with teenagers?" - Andy Baker [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 31-05-2007, 12:52
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
mecanum joystick selector?


i have a mini mecanum bot, im trying to program it (programming is not my area, building is)

i need it to do single stick drive , then when i click the trigger of that stick, and move the stick sideways, the robot will go sideways.

i thought it would need two drive codes one for sideways and one for skidsteer, and a simple if statment between them.(this didnt work)

im pretty shure my concept works, i jsut need a little help putting it into code, could someone translate this into C, or shoot me in the right direction? or if this is the totally wrong way to do this, help?

IF (trigger pushed in)
then (do sideways code)
otherwise (do skid steer code)

Devo

Edit: i dont need mixing values or mecanum code, im having trouble with a selector.

Last edited by Devo1098 : 31-05-2007 at 13:40.
  #2   Spotlight this post!  
Unread 31-05-2007, 13:15
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: mecanum joystick selector?

Hi Devo, Please allow me to "shoot you in the right direction"

A search on "omni holonomic mecannum" will yield at least 25 threads on this subject. It will include different takes on the math, snippets of code and a wealth of documented experience on this subject - going back 5 years.

enjoy,
Eric
__________________

Don't PANIC!
S. P. A. M.
  #3   Spotlight this post!  
Unread 31-05-2007, 14:04
bcieslak
 
Posts: n/a
Re: mecanum joystick selector?

send me your email and I can send you some of our mecanum stuff. we programmed up a vex to use mecanums when were developing our FRC code.

Brian
k9wis@yahoo.com
  #4   Spotlight this post!  
Unread 31-05-2007, 15:38
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 joystick selector?

Quote:
Originally Posted by Devo1098 View Post
IF (trigger pushed in)
then (do sideways code)
otherwise (do skid steer code)
Code:
  if (p1_trig)
  {
    strafe();
  }
  else
  {
    skid();
  }
Replace the strafe() and skid() calls with whatever you use to drive the robot.
  #5   Spotlight this post!  
Unread 31-05-2007, 15:49
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 joystick selector?

Quote:
Originally Posted by Devo1098 View Post

i have a mini mecanum bot, im trying to program it (programming is not my area, building is)
It looks like you have the wheels on backwards. There's enough of a difference between the length and width of the chassis, so it's not a huge problem, but I think your robot might have a hard time spinning in place under its own power, and might find it hard not to spin in place when something is trying to push on one of its corners.

If you swap the front and back wheels on each side, you'll make it more able to spin only when desired. (You'll also have to change the software to account for the change, of course. That could easily be as simple as switching the sign of one or two computations.)

This is a separate topic from software, so I'm putting it in a separate reply.
  #6   Spotlight this post!  
Unread 31-05-2007, 22:48
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
Re: mecanum joystick selector?

yeah i did put the wheels on backwards, i had them on correct but wanted to know what changed if they were on backwards. so i flipped them around, but never changed them back because it works about the same. i never really thought about the spinning or pushing power. so ill correct the wheels

Devo
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autonomous selector simpsonboy77 Programming 16 05-03-2007 22:26
Mixing Joystick Values for mecanum wheels Leav Programming 10 15-01-2006 14:51
Help with Selector Switch Slick Programming 2 16-02-2005 16:09
Team selector switches on ISAAC Lloyd Burns Robotics Education and Curriculum 0 17-12-2002 08:32
Channel Selector David Kelly Technical Discussion 6 03-06-2001 01:15


All times are GMT -5. The time now is 19:41.

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