Go to Post Look at 71's 'walking' bot from last year. One dosn't need wheels/track to move. All you need is an idea. - Jack [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
  #1   Spotlight this post!  
Unread 11-02-2011, 11:48
Locater123 Locater123 is offline
Registered User
FRC #1644
 
Join Date: Feb 2011
Location: Los Angeles
Posts: 2
Locater123 is an unknown quantity at this point
How to start programing mecanum wheel drive ?

How do start programing the mecanum wheel drive?
Please be very specific because I'm new to labview, thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2011, 14:40
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: How to start programing mecanum wheel drive ?

LabVIEW makes it easy.

In Begin.vi there is an Open 2 Motor Drive block. Delete the PWM and Inverted constants connected to it. Right-click the block and replace it with an Open 4 Motor Drive. Create constants on all of its inputs and assign the correct PWM outputs to the four motors on the corners of your drivebase.

In Teleop.vi there is an Arcade Drive block. Replace it with a Mecanum Drive block and figure out what joystick axis you want to use for rotation control.

That'll get you started. If you have specific questions, we can probably give you helpful answers.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2011, 15:22
Locater123 Locater123 is offline
Registered User
FRC #1644
 
Join Date: Feb 2011
Location: Los Angeles
Posts: 2
Locater123 is an unknown quantity at this point
Re: How to start programing mecanum wheel drive ?

Thanks I got it to work. I'm using a joystick that has three axis, the problem I have is with the z axis. The control is just inverted and I was just wonder how I put it the right way?
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2011, 16:06
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: How to start programing mecanum wheel drive ?

The Y input to the Cartesian variety of the Mecanum Drive vi follows the standard HID joystick convention where negative means forward. If your joystick value is negative but your robot is going backwards, you probably need to change the MotorInverted inputs on your Open Drive vi in Begin.

If your joystick value goes positive when you press the joystick forward, the appropriate fix is to insert a Negate function between the joystick axis output and the mecanum drive Y input. It looks like (-x) in a right-pointing pale yellow triangle, and it can be found in the Numeric function palette.
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:32.

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