hello all,
So I’m new to this forum and have a whole bunch of questions to ask about this silly controller and problems I’m having with it… So, for a school project, I was given 1 6CH maestro controller, 1 position servo motor (6001B), and 1 velocity servo motor (SM-S4303) all from pololu. I am trying to script some code together for a forklift like device where the forks are lifted using the position servo motor and the rear wheels are controlled using the velocity motor but i keep running into problems with it…
here’s my problem: Whenever i run the script i can never turn off the continuous velocity motor… My solution to that was to set the slide bar for its forward and reverse speed to the middle so that it would essentially be motionless, but whenever the position servo runs, the continuous motor (still set at a standstill position on the slide bar) starts to freak out and go either backwards or forwards, as if the middle point on the slide bar has now moved… i cant have this happen for what I’m doing…
So my questions are this: Is it possible to set the mode of my velocity motor from servo to input? Is there a code i can use to shut off the velocity motor? Has anyone ever encountered anything like this before??
here is my code for the pololu script (also note that i am not willing to learn a new language, as i do not have enough time to do so.):
10 0 speed
begin
6169 3 servo
4000 0 servo # set servo 0 to 1.00 ms
moving_wait
8000 0 servo # set servo 0 to 1.00 ms
moving_wait
4000 3 servo
3000 delay
6169 3 servo
4000 0 servo # set servo 0 to 1.00 ms
moving_wait
4000 3 servo
3000 delay
quit
repeat
sub moving_wait
begin
get_moving_state
while
# wait until it is no longer moving
repeat
return
Thank you in advance!