I'm having trouble creating a functional program for limit switches. The idea is that there is an arm that will move forward, trigger a switch at its limit, and move back until it triggers another switch in the ready position. I think the problem is either the switches themselves, my if statements, or how I'm trying to take the values of the switches. Right now when I run the program the arm will move back without stopping. The arm will continue to move back until I restart the cRio, completely ignoring the switches. I tried changing the if statements to false, but when I do that the arm just twitches for a second. If anyone can find what I'm doing wrong or give a better solution, that would be awesome.
The code can be found here-
https://github.com/zackd97/RobotProject4
Sorry if the github repository sucks, I'm pretty new at this.
Edit: I forgot to mention that all of the issues are in the loader subsystem, pushfrisbee command, readyposition command, and the frisbeeload command group.