I want to set a program is , when dumper pressing , motor1 cannot fwd but it can rev .
I already set when L2 pressing , motor1 fwd .
when L1 pressing , motor1 rev.
but I cannot set the bumper , can anyone help me ?
can we see a sample of your code?
what do you mean the simple ?
if bumper pressing . motor1 stop , cannot fwd, but can rev
Pseudocode:
┌─If L2 pressed:
│ ┌─If NOT bumper pressed:
│ │ motor1 forward
│ └─Else:
│ motor1 stop
├─Else if L1 pressed:
│ motor1 reverse
└─Else:
motor1 stop
1 Like