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,
Solved! Go to Solution.
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.
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...).
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!
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!
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!