hi my name is chuck im a student doing a picaxe project for my year 12 assignment and i need so assistance with my script.
im building a project the goes backwards and forwards on a cable.
i want the project to go one way then hit a switch and go the other way and hit the other switch and then go back the other way and just keep repeating that.
this is the script i have done so far but i just can't get it to work correctly
chuck:
if input0 = 0 then Straight
if input0 = 1 then goto chook
goto chook
chook:
if input2 = 0 then backwards
if input3 = 1 then goto chuck
goto chuck
backwards:
low 0
high 1
low 2
high 4
goto chuck
Straight:
high 0
low 1
high 2
low 4
goto chuck
if someone could please help it would be much appreciated
kindly chuck
im building a project the goes backwards and forwards on a cable.
i want the project to go one way then hit a switch and go the other way and hit the other switch and then go back the other way and just keep repeating that.
this is the script i have done so far but i just can't get it to work correctly
chuck:
if input0 = 0 then Straight
if input0 = 1 then goto chook
goto chook
chook:
if input2 = 0 then backwards
if input3 = 1 then goto chuck
goto chuck
backwards:
low 0
high 1
low 2
high 4
goto chuck
Straight:
high 0
low 1
high 2
low 4
goto chuck
if someone could please help it would be much appreciated
kindly chuck