Go to Post Temp wiring is always bad but it is made worse when dealing with a $1000 part. You wouldn't try to lash a makeshift power source to your PC. - Al Skierkiewicz [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 19-02-2011, 17:23
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: how to program mecanum wheel drive?

Quote:
Originally Posted by Ether View Post
Two suggestions:

1) I would think it would be more intuitive if pushing rotJoy to the right would cause clockwise rotation*.

2) You need to normalize the 4 wheel commands, in a way that preserves their holonomic relationship, before sending them to the motors.


* I am assuming that the motors are set up so that issuing a + command causes the wheels to rotate in the "forward" direction

As for #1, yeah, as far as I know everything should be backwards because of the Joystick output. They might need to modify it....

Didn't know about the handy PDF, though. Thanks
  #2   Spotlight this post!  
Unread 19-02-2011, 23:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
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: how to program mecanum wheel drive?

Quote:
Originally Posted by sjspry View Post
As for #1, yeah, as far as I know everything should be backwards because of the Joystick output. They might need to modify it....
The joystick X-axis is + to the right. So your code should be

Code:
front_Left = -mainJoy.getY() + rotJoy.getX() + mainJoy.getX()
front_Right = -mainJoy.getY() - rotJoy.getX() - mainJoy.getX()

back_Left = -mainJoy.getY() + rotJoy.getX() - mainJoy.getX()
back_Right = -mainJoy.getY() - rotJoy.getX() + mainJoy.getX()

  #3   Spotlight this post!  
Unread 20-02-2011, 14:47
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?



so, how do I program this?
  #4   Spotlight this post!  
Unread 20-02-2011, 14:56
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
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: how to program mecanum wheel drive?

Quote:
Originally Posted by sonicwingmode View Post


so, how do I program this?
Just like any other motor: it depends on what you want to do with it.


  #5   Spotlight this post!  
Unread 20-02-2011, 15:22
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?

ok, thanks
  #6   Spotlight this post!  
Unread 20-02-2011, 17:02
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?

our team is trying to use the relay to control the window motor, how do we program this?
  #7   Spotlight this post!  
Unread 20-02-2011, 17:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
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: how to program mecanum wheel drive?

Quote:
Originally Posted by sonicwingmode View Post
our team is trying to use the relay to control the window motor, how do we program this?
http://www.chiefdelphi.com/forums/sh...09#post1025209



Last edited by Ether : 20-02-2011 at 17:15.
  #8   Spotlight this post!  
Unread 20-02-2011, 17:10
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?

edit: where do we put the program in?

Last edited by sonicwingmode : 20-02-2011 at 17:25.
  #9   Spotlight this post!  
Unread 20-02-2011, 17:18
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?

the help here is awesome!
  #10   Spotlight this post!  
Unread 20-02-2011, 17:25
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?

where do we find "Button 1"
  #11   Spotlight this post!  
Unread 20-02-2011, 17:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
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: how to program mecanum wheel drive?

Quote:
Originally Posted by sonicwingmode View Post
where do we find "Button 1"

On the Attack3 Joystick it would be the trigger.



  #12   Spotlight this post!  
Unread 20-02-2011, 17:34
sonicwingmode sonicwingmode is offline
Registered User
FRC #3404
 
Join Date: Feb 2011
Location: Macon
Posts: 11
sonicwingmode is an unknown quantity at this point
Re: how to program mecanum wheel drive?

ok, I've found it.
Now where do I put this new program under? (begin? teleop? robot main?)
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:53.

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