
Arm and Limit Switch Project Not Working Correctly
The idea here is to have my arm lift to the top, hit the limit switch, and then swing down. Once it hits the bottom limit switch, it goes back up and repeats.
Can anyone tell what's wrong? It won't compile.
Here is my current program, and the error messages below it; any help would be appreciated.
Here are the error messages I receive when attempting to compile. First 6 error messages are for the first if statement, and the rest are for the second.
File "ArmTrials5-13-12.c" compiled on May 13 2012 17:31:15
**Error**:Unexpected scanner token-> '&&'
**Error**:Unexpected scanner token-> '('
**Error**:Missing ';' before ')'
**Error**:Unexpected scanner token-> ')'
**Error**:Unexpected scanner token-> '||'
*Warning*:Meaningless statement. Did you mean '=' instead of '=='?
**Error**:Unexpected 'else'. Ignored.
**Error**:Unexpected scanner token-> 'if'
**Error**:Unexpected scanner token-> '('
**Error**:Missing ';' before ')'
**Error**:Unexpected scanner token-> ')'
**Error**:Unexpected scanner token-> '&&'
**Error**:Unexpected scanner token-> '||'
*Warning*:Meaningless statement. Did you mean '=' instead of '=='?