|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|
The 2nd Joystick must DIE
it still doesnt work i must have tried one hundred ways now heres my code.
![]() and the teleop vi ![]() HELP! if you could post a tank drive program it would help alot!! |
|
#2
|
|||
|
|||
|
Re: The 2nd Joystick must DIE
What does and doesn't work? Does it move at all, only left side works, etc?
Greg McKaskle |
|
#3
|
||||
|
||||
|
Re: The 2nd Joystick must DIE
Your begin.vi looks fine, although, you need to move your drive code in the telop.vi outside of the case it is in now, and put it into the larger case structure. The case you have it in now, I believe is for camera tracking. Also, I only see "joystick 2" being referenced, you'll need to reference "joystick 1" as well instead of using the "joystick read" block.
Furthermore, don't forget to close the "Joystick 2" in your final.vi, everything else should be closed already. Last edited by Hadi379 : 29-01-2010 at 08:39. |
|
#4
|
||||||
|
||||||
|
Re: The 2nd Joystick must DIE
Quote:
John, It appears that you have similar problems in this thead. I wonder if the problem isn't with the code, but how you are running it. How are you running the code? It also looks like you are using Windows 7. Have you tried it on a supported operating system? |
|
#5
|
|
Re: The 2nd Joystick must DIE
@Joe tried XP as well, i when i want to try the code i richt click boot time device and select run as startup after the changes I make.
@Greg Only the USB1 stick responds left side. I even tried a program where instead of you separte joysticks it was one daul action usb and i set the axis's to axis 2 and axis 5 and still only the axis 2 worked. |
|
#6
|
||||||
|
||||||
|
Re: The 2nd Joystick must DIE
Quote:
Do you have any errors on the diagnostics tab of the DS? |
|
#7
|
|
Re: The 2nd Joystick must DIE
Yes i do, do you have to rebuild it every time?. When i do have errors they are in reference to the camera, some times a watchdog timeout but it doesn't effect the controller 1 and never gives me any error in reference to controller 2. The Dashboard PWM ports where the 2nd controller would be controlling dont respond either.
|
|
#8
|
||||||
|
||||||
|
Re: The 2nd Joystick must DIE
Yes, you must build after every change if you want to run it as startup.
Alternately, you can click the run button in robot main to run in debug mode. Then you can use debug tools like probes to see what is actually happening in the code. For example, you can probe the value from the joystick and see if it is doing what you expect or if the problem is somewhere downstream. |
|
#9
|
|||
|
|||
|
Re: The 2nd Joystick must DIE
Could it be that your joystick assignments are reversed? (ie the one you're assigning to USB1 ends up being joystick 2 and vice versa). It seemed like for us the USB port assignments weren't stable. The students seem to have figured out how to go with the flow, so I don't have a better description of this.
|
|
#10
|
||||
|
||||
|
Re: The 2nd Joystick must DIE
Can someone look at my telop code and let me know if this is correct. I thought I was on the right track, but from other posts on here, I decided to go another route. The image of the telop.vi is attached. Sorry for the poor resolution, but i had to make the file size small enough. Thanks....
Last edited by Hadi379 : 29-01-2010 at 14:06. |
|
#11
|
|||
|
|||
|
Re: The 2nd Joystick must DIE
Quote:
In the next update there will also be a VI that takes cartesian inputs so you can wire your joystick up directly. As for the poor resolution, you should use jpg or png, not bmp. bmp is basically just a raw image with no compression. |
|
#12
|
||||||
|
||||||
|
Re: The 2nd Joystick must DIE
Quote:
Also, wouldn't putting the gyro in as an input cause positive feedback? Shouldn't that also be a joystick value? |
|
#13
|
|||
|
|||
|
Re: The 2nd Joystick must DIE
Quote:
Quote:
-Joe |
|
#14
|
||||||
|
||||||
|
Re: The 2nd Joystick must DIE
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: In the pit everyone must follow the rules | Rich Wong | Extra Discussion | 3 | 02-07-2009 15:57 |
| The 2nd and 3rd Clue???? | nevereverregret | General Forum | 4 | 19-01-2009 20:22 |
| Why MUST the 7.2v battery be attached to operate servos on the RC? | Mike Rush | Control System | 17 | 06-02-2004 18:57 |
| ... And the Boards Die | AJ Quick | Chit-Chat | 19 | 14-04-2003 13:36 |
| I must be the postman... | archiver | 2001 | 4 | 23-06-2002 22:22 |