02-11-2019 04:02 PM
So I don't know if this is what this forum is for, but as one of two coders in my team (+ the main one), I really get pressured by my team to make everything work, and I can't figure something out for the life of me!
So here's what my team wants:
-One button (In our case button 3 [Y]) needs to invert axes X and Y in our drive system when pressed, until pressed again.
I've tried about 10 times so far and every time I either ruin the code and the robot freezes, or we have to hold Y.
I've tried the RS Bistable Flip Flop vi, but maybe I just dont know how to use it???
Thank you all and sorry I can't code xD,
Team 5411
Solved! Go to Solution.
02-11-2019 04:10 PM
I think this site works really well when I want to figure out some button actions.
Team 358 LabVIEW Programming - http://team358.org/files/programming/ControlSystem2009-/LabVIEW/
I'd looks for "Button Toggle Action (2014)" to get what you want.
02-11-2019 04:18 PM
I agree with JY,
I would use a Toggle to switch between the two behaviors (as describes here: Use Joystick Button to Toggle Between Cases Using LabVIEW for FRC) and then would make one of the cases switch the inputs (maybe negating them too...).
Regards,
02-11-2019 04:31 PM
I think I might have done something wrong, but I can't see where.
Nothing inverses now. Those values go up to a multiplication on the X and Y axes.
Sorry again for my inexperience!
Team 5411
02-11-2019 04:57 PM
02-11-2019 05:06 PM
Thanks! This works!
The only thing is that it starts immobile, you have to hit Y to begin the process. We can deal with this though!
Thank you!
02-11-2019 05:07 PM - edited 02-11-2019 05:09 PM
02-11-2019 05:18 PM
It did, Thank you!
Would give you 5 kudos if I could!
03-01-2019 06:37 PM
Hey, we are trying to make this for our motor outputs, and I cannot seem to find the orange node for the program. In which library can we find the node? Thank you!
03-01-2019 06:39 PM
Had just found it, never mind.