![]() |
Xbox 360 controls will this work ?
ive been working on my labview xbox 360 controller just wanted to know if this will work
|
Re: Xbox 360 controls will this work ?
2 Attachment(s)
here the telop pics
|
Re: Xbox 360 controls will this work ?
I would use a greater than or less comparison sub.vi than for your triggers. Your button code will not work because you have multiple pieces of code sending conflicting information to the robot. If you pressed a button to turn a relay on, other parts of your code will still be telling to be off. You can only have one going on at a time.
|
Re: Xbox 360 controls will this work ?
alright thanks ill make the corrections now
|
Re: Xbox 360 controls will this work ?
1 Attachment(s)
hows this and for the xbox control the value for the left trigger is 0 -1 and i couldn't figure how two do that one because every time i deployed it an error message came up
|
Re: Xbox 360 controls will this work ?
As Owen mentioned, you should have only one Relay Set instead of the multitude that you've got now.
It needs restructuring along the line of this example where the values you want cascade through your button choices, but the Set happens only once at the end. Each of your Relay Cases gets replaced with a Select and the values you choose in your true and false cases. ![]() |
Re: Xbox 360 controls will this work ?
how did you get the "off" constant
|
Re: Xbox 360 controls will this work ?
never mind i found it
|
Re: Xbox 360 controls will this work ?
Just Create->Constant on the input to the Relay Set, then copy and paste the constant wherever else you want to use it.
|
Re: Xbox 360 controls will this work ?
Quote:
what i wanted to do was if button 1 and button 2 are pressed at the same time a certain action happens and if only button one is pushed a different action happens with that code that you pasted says is if button 2 and 3 are pressed then the relay will run forwards and if only button 2 is pressed then it'll run the relay reverse am i correct ? just to make sure i understand this ^.^ |
Re: Xbox 360 controls will this work ?
A little different:
|
Re: Xbox 360 controls will this work ?
Quote:
|
Re: Xbox 360 controls will this work ?
Quote:
and your button 2 with my button 3, and you get exactly what you stated above. if button |
Re: Xbox 360 controls will this work ?
Quote:
using the same logic for circumstance 1 how will i wire the two outcomes of both circumstances two only one wiring point would io use a (and) function ? |
Re: Xbox 360 controls will this work ?
Just have two separate decision trees for the two different relays.
Don't try to combine them if they don't have to be. That just makes the code confusing to understand. |
Re: Xbox 360 controls will this work ?
yes yes it does thanks for the help
|
| All times are GMT -5. The time now is 20:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi