|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Program so far - help please
We are using Spike relays.
|
|
#2
|
||||
|
||||
|
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. Last edited by Uberbots : 20-02-2009 at 13:26. Reason: 1010010101011 |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |