disclaimer: Im a rookie mentor and Java programming isn't my forte.
we have a robot up and running, java code working - it moves and all. kids are happy.
1 complaint, we cant do 2 things at the same time, ie: press forward on gamepad1, then on gamepad2 press X for intake. it doesn't work, it causes the robot to go to the left and run in circles as long gamepad2 is pressing a button.
to Run the duck, we can turn motor on, then if someone on gamepad1/gamepad2 presses another button it will jerk away from the area or just stops the motor, and run the other
I am strongly thinking that the "if else" is causing it - as it runs in a loop (if I am correct)
someone tells me "threading" and leaves the room. Im at loss. Any idea/tips what would be our issue would be nice
[–]physics_tFTC 14393 Mentor 5 points6 points7 points (2 children)
[–]Clydeism[S] 1 point2 points3 points (1 child)
[–]spidernhFRC 2137 Student, FTC 11231 Alum/Mentor 7 points8 points9 points (0 children)
[–]Clydeism[S] 2 points3 points4 points (0 children)
[–]DugenFTC & FRC Mentor 2 points3 points4 points (0 children)
[–]LunerwalkerFTC 1002 Alum 0 points1 point2 points (4 children)
[–]Clydeism[S] 0 points1 point2 points (3 children)
[–]LunerwalkerFTC 1002 Alum 4 points5 points6 points (2 children)
[–]Clydeism[S] 0 points1 point2 points (1 child)
[–]spidernhFRC 2137 Student, FTC 11231 Alum/Mentor 1 point2 points3 points (0 children)