Go to Post Naw, basketball isn't nearly as great a sport as FRC. They play for the money. We play for honor, dignity, and respect. - synth3tk [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 20-02-2009, 13:25
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Program so far - help please

Well first you have to do the obvious, you need to open the relay device, and the joystick devices if you still havent.

you can use the joystick "get.vi" which (among other things) returns a cluster of button values for you to use. simply do an "unbundle by name" to access the individual buttons (button 1, 2, 7, etc)

i dont know which buttons are the ones you are referring to, but they should be clearly numbered on the joystick itself (i think 5 is the trigger and 2 is the thumb button. i think)

next you need to make a case structure. because you have two different buttons that dont neccesarily operate independently (and telling a motor to go both forwards and backwards doesnt work) you need to make the labview equivalent of an if-elseif-else structure. see the attached VI for details. im assuming you are somewhat familiar with binary numbers with this one (-;

i have those random controls in there so the VI wouldnt be broke. you can turn it into a subvi if you want to.
Attached Files
File Type: vi chinkley-relay-ex.vi (37.4 KB, 33 views)
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY

Last edited by Uberbots : 20-02-2009 at 13:26. Reason: 1010010101011
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2009, 13:44
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Program so far - help please

Beat me to it Uberbots. Oh well, here's my version. Same concept, converts the joystick button values to binary and only sets the relay if its 0, 1, or 2.
Attached Files
File Type: vi Joystick Relay.vi (14.5 KB, 33 views)
__________________
Twitter Profile
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2009, 16:07
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Program so far - help please

How does this look?

Can I use the autonomous vi with just changing the time it is moving forward in the given file or do I need to attach it into the Tank drive?
Attached Files
File Type: vi Basic Robot Main.vi (99.8 KB, 17 views)
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help Program Relays in WindRiver.... programmr Programming 6 28-01-2009 11:42
pic: please help us please mortals CD47-Bot Robot Showcase 5 25-01-2004 11:03
please help us, pretty please :) archiver 2001 0 24-06-2002 03:13


All times are GMT -5. The time now is 21:37.

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