Go to Post hmmm... big open space between arena and pits... thousands of poof balls...thousands of high school kids hopped up on sugar and robotics.... sounds a little dangerous. - Courtneyb1023 [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 16-02-2011, 18:27
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
LabVIEW Programming help

Hey there,
We're trying to program the joystick so that when it is pushed forward it goes forward, left it turns left, back back, and so on. we have the joystick to control the forward and reverse motion of the bot, but when we try to program it to be able to have it turn left or right it doesn't work, it takes the forward/reverse motion and makes it so that when the joystick is pushed left or right it goes forward/reverse. how can we program it so that this issue doesn't happen? we're using LabVIEW for our programing.
many thanks from the Marinerds!
Below is the programing setup we are using that doesn't seem to work
Attached Thumbnails
Click image for larger version

Name:	labview block diag help.JPG
Views:	56
Size:	54.6 KB
ID:	10144  
  #2   Spotlight this post!  
Unread 16-02-2011, 19:10
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: LabVIEW Programming help

are you using a 2 or 4 wheel drive?
  #3   Spotlight this post!  
Unread 16-02-2011, 19:12
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: LabVIEW Programming help

We are using two motors, with four wheels, the two motors being in the rear. While the front two wheels are free spinning.

Last edited by Nicandy : 16-02-2011 at 19:16.
  #4   Spotlight this post!  
Unread 16-02-2011, 19:18
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: LabVIEW Programming help

ok. I think you are over thinking the drive system. When you open a new project in labview, open up to the begin.vi through team code menu. As default, it is set as a 2 motor arcade drive which is what you seem to what. It is also set to work with the joystick the way you want it to. You may have to work with it my changing the true and false values in the constants.
In your picture, it seemed you were trying to make two arcade drive that would do the same thing. Try what i said. Let me know how it goes.
  #5   Spotlight this post!  
Unread 16-02-2011, 19:18
NetPlanet NetPlanet is offline
Registered User
AKA: Michael Bilinsky
FRC #0296 (The Northern Knights)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Montreal, Qc
Posts: 23
NetPlanet is an unknown quantity at this point
Re: LabVIEW Programming help

Try opening the motors and joysticks once. You only need one Ref per actuator or sensor to which you can connect as many vi's as you wish. Make sure you connect the y axis of the joystick to the y of the arcade drive, and the x axis of the joystick to the x of the arcade drive. Hope this helps.
__________________
Checkout my new blog! >> www.netopyaplanet.com
~yay
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 10:42.

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