Hi,
I'm done building my 1st robot, which consists of an axe023 board, two bumper switches, and two motors. However, I'm rather short on time and know nothing of Basic or the picaxe programming editor. Could someone give me a hand in writing the code for my robot? I'm trying to make it do something like this:
motor 1 & 2 drive forward
if bumper 1 or 2 pressed
motor 1 & 2 drive in reverse
motor 1 & 2 pause
motor 1 drive forward
loop
I've been reading the manuals, but I'm still not completely sure how to do this.
Thanks.
I'm done building my 1st robot, which consists of an axe023 board, two bumper switches, and two motors. However, I'm rather short on time and know nothing of Basic or the picaxe programming editor. Could someone give me a hand in writing the code for my robot? I'm trying to make it do something like this:
motor 1 & 2 drive forward
if bumper 1 or 2 pressed
motor 1 & 2 drive in reverse
motor 1 & 2 pause
motor 1 drive forward
loop
I've been reading the manuals, but I'm still not completely sure how to do this.
Thanks.