|
Shooter Lifting Code
Hello, I qould like an inquiry on whether this routine will work. For lifting and adjusting the angle of our shooter, we have 5 touch sensors lined up at different angles of the lift, and this program is supposed to get the distance sensed by the vision camera(it's a placeholder for now), and compare the desired level with the level the lift is currently at, telling the motor to move up or down depending on the direction needed. Does my current program look alright? (it's in teleop.vi)
Also, I would like to know how to make the routine run only once when you press the button on the joystick, instead of constantly running while the button is held down, as it would work atm.
Thanks!
|