
Re: why wont the bumper run my code when i press it?
Think about how your robot "flows" through the program. Your robot's starting point is always "task main()".
Based on your code in task main, the robot will check ONCE if "bump" is pressed, then move on. There's nothing else in your code, so the program ends and the robot does nothing.
What you want to do is wait until the touch sensor is pressed, not just check if it is pressed and move on. You can do this by changing your logic based off of the following pseducode;