Beginner Program issues! Urgent advice still needed
We have built an elevator for a project and our builder has used one motor, 3 line followers, 2 bump switches, a limit switch, and a chain and sprockret.
For our program, we used multiple if statements and as of now the elevator won't stop, or go down.
My job is to try and figure out what our programmer did wrong, but I can't seem to see why the computer doesn't go on to the next line of code.
This is the copy & pasted program, with the line followers being labeled as light and their respective floor numbers:
The computer doesn't continue passed the first startMotor(port2, up), and I have until tomorrow to figure out what the issue is. If someone can suggest a better way to code this it would be very appreciated.