Go to Post Seeing a bunch of teams from Indiana and probably Michagin competing at the same time.... If I wanted to see that, I'd just go to the Championship in Atlanta. :yikes: - Barry Bonzack [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 16-02-2009, 16:03
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: Joystick Buttons?

If we take the SetSpeed=0 out of the false conditions we can get both buttons to work. HOWEVER, now it doesn't stop.....!

Does that help anyone?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2009, 16:21
dqmot17's Avatar
dqmot17 dqmot17 is offline
Orange Hat
FRC #0247 (Da Bears)
Team Role: Webmaster
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 142
dqmot17 can only hope to improve
Send a message via AIM to dqmot17
Re: Joystick Buttons?

make both of the joysticks come in on a Or statement. (the image is my code)
Attached Thumbnails
Click image for larger version

Name:	ex.JPG
Views:	62
Size:	28.5 KB
ID:	7481  
__________________
2009 Championship Finalists & 3 Blue Banners
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2009, 16:25
rhoads2234's Avatar
rhoads2234 rhoads2234 is offline
Registered User
AKA: Erin
FRC #2234
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: PA
Posts: 80
rhoads2234 will become famous soon enough
Re: Joystick Buttons?

your set speed to 0 would be in the false statement of the interior case statement.
This would make the motor stop when no buttons are pressed but if one or the other is, it will send that value.
-so I will walk you through it (I don't have Labview on this computer)

Open Motor
get button 5
___Case statement
_____true
________set speed to Right Crab speed inverse
_____false
________get button 4
________Case Statement
__________true
_____________set speed to Right Crab speed
__________false
_____________set speed to 0
__________________
ALWAYS a mechanical problem!

Last edited by rhoads2234 : 16-02-2009 at 16:27. Reason: make the code clearer
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2009, 16:59
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: Joystick Buttons?

I think we got it!!!!!!!!!!!!!!!!!!! Wow, thanks everyone. I think we might be ready to ship.
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
Labview Joystick Buttons... team877 NI LabVIEW 36 17-02-2009 19:23
Joystick buttons Team_2547 NI LabVIEW 1 24-01-2009 19:42
Joystick Buttons KRibordy C/C++ 6 24-01-2009 10:06
Buttons to Pins on Joystick yarb65 Electrical 1 24-08-2007 20:39
Assigning Joystick buttons.... archiver 2001 5 24-06-2002 00:59


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

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