Go to Post It's wrong to scuttle someone else's boat because you don't think it's seaworthy. You probably don't know that what you were seeing will be called a submarine. - ThatHat [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 14-04-2011, 16:08
Joel Johnson's Avatar
Joel Johnson Joel Johnson is offline
zeleathos
FRC #3536 (ElectroEagles)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Hartland Michigan
Posts: 9
Joel Johnson is an unknown quantity at this point
Post How do you set up a controller code

I was wondering how to set up a code that allows another controller to control a certain function. Like moving an arm up or down. The driver has control of every thing right now, and we would like to get some of it off his shoulder thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-04-2011, 16:16
vhcook's Avatar
vhcook vhcook is offline
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: How do you set up a controller code

If you're trying to add a new joystick, then in Begin.VI, you'll need to add a joystick open function indicating which USB port to expect it on, then wire it over to a Joystick SetReference VI and give it a name. Make it look like the one that's already there, just name it something else.

In Teleop, you would do a Joystick GetReference using the name you set in Begin.vi (spelling counts), and wire it to a Joystick GetValue (or whatever that's called - not in front of my programming PC just now). Unbundle the Axes or Buttons outputs by name as needed. Wire the output of that into your control code where the driver joystick is currently wired in, and remove the connections from the driver joystick, and you should be good to go.
__________________


Reply With Quote
  #3   Spotlight this post!  
Unread 14-04-2011, 16:26
Joel Johnson's Avatar
Joel Johnson Joel Johnson is offline
zeleathos
FRC #3536 (ElectroEagles)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Hartland Michigan
Posts: 9
Joel Johnson is an unknown quantity at this point
Re: How do you set up a controller code

Thank you very much.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-04-2011, 10:39
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: How do you set up a controller code

You must have a really good driver that he has been able to drive and control the arm this whole time. I know I couldn't do it myself.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
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 09:25.

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