gosub
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ 4_000_000
servopulse var byte
PROGRAM Main
Main:
Do
gosub backward
pause 2000
gosub forward
Loop
forward:
Pulsout RB.7, 100
Pulsout RC.7, 200
return
backward:
Pulsout RB.7, 200
Pulsout RC.7, 100
return
ok this code should make the servos on my SX boe bot go backward, then forward, it just sits there and doesn't move though
why is this?
-Henry
FREQ 4_000_000
servopulse var byte
PROGRAM Main
Main:
Do
gosub backward
pause 2000
gosub forward
Loop
forward:
Pulsout RB.7, 100
Pulsout RC.7, 200
return
backward:
Pulsout RB.7, 200
Pulsout RC.7, 100
return
ok this code should make the servos on my SX boe bot go backward, then forward, it just sits there and doesn't move though
why is this?
-Henry
Comments
Sending one pulse doesn't do very much.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔