Go to Post probably another ingenious game hint planted by Dave months before anyone even thinks about a game hint! - skimoose [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 03-02-2014, 16:58
swaglord2000's Avatar
swaglord2000 swaglord2000 is offline
Registered User
FRC #4073
 
Join Date: Jan 2014
Location: Myrtle Beach
Posts: 13
swaglord2000 is an unknown quantity at this point
How to program Strafing with Mechinum wheels in Labview.

I am a novice programmer with no help at my school, and I have been able to make some decent progress. As of now I have programmed the robot to drive correctly with the ps2-like controller. On the left joystick I have it when it is pushed up the robot drives forward and when pushed down it goes backwards. I am wanting it to strafe right when the joystick is pushed right and left when the joystick is pushed left. I have tried going into the Begin.vi and inverting the motors, but when I do that it messes up the other controls. I need to make a separate variable for when I push the left joystick right or left that it only inverts certain motors. I appreciate all of the help.

In short we want to be able to invert certain motors only on a single axis.

Thanks, team 4073

Last edited by swaglord2000 : 03-02-2014 at 17:07.
  #2   Spotlight this post!  
Unread 03-02-2014, 17:08
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: How to program Strafing with Mechinum wheels in Labview.

You ned to go into your teleop.vi and wire the axis you want from your joystick into the appropriate axis input on the RobotDrive block. For us it's axis 1 into x, axis 2 into y, and axis z into z.

IIRC:

x=Strafe left and right
y=Forward+Backward
z=Rotation
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
  #3   Spotlight this post!  
Unread 03-02-2014, 17:16
swaglord2000's Avatar
swaglord2000 swaglord2000 is offline
Registered User
FRC #4073
 
Join Date: Jan 2014
Location: Myrtle Beach
Posts: 13
swaglord2000 is an unknown quantity at this point
Re: How to program Strafing with Mechinum wheels in Labview.

We have all the driving set up to the axis we want. We have it set up right now where on the left joystick forward and back drives forward and back, and left and right is supposed to strafe. The right joystick has right and left turning right and left. It is all programmed correctly to the way it will work with our motors. The only problem we have with strafe is that when we try to strafe all the wheels either go all inward or all outward which is why we need to invert two of them to actually move and not just spin in place.

Here a picture of our teleop. We switched around the axises so that it would work for the controller where the default had it initially switched all around in the wrong places.
Attached Thumbnails
Click image for larger version

Name:	Teleop.jpg
Views:	36
Size:	204.9 KB
ID:	16083  
  #4   Spotlight this post!  
Unread 03-02-2014, 17:44
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 program Strafing with Mechinum wheels in Labview.

Detail for us the wiring of your speed controllers and motors, and show us how Begin is opening the 4 Motor Drive. In the process, make sure the software matches the hardware. If you have a couple of motor locations swapped, you can get the symptoms you describe.

Also describe how the wheels are mounted. When you look at them from the top, do the rollers form an X or an O pattern?
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 02: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