oh well done. my mistake.
i will try and throw some codes to you this week, im a bit busy here at present but if i get a change ill post some code sections to you.
have you learned much from the current code i wrote?
to add servos to this you would need to define them like this.
Add the variable at the start of the code.
Servo1 var word
you would need to update the servo driver.
first define the pin number (replacing the ?) servo name (servo) or what ever you wish to call it.
we use 13] at the end as a Return or Closing character.
serout SSC_OUT, SSC_BAUD,["#15P", DEC ldrive, "#14P", DEC ldrive, "#?P", DEC Servo1, 13]
if you feel you wish to get it moving you can use simple servo commands by setting up a button for the command. here i have used X
we start by saying IF the button is pushed THEN
then followed by the servo positions. Do you know how servos work?
1500 is center. if you went to 1900 the servo would move clockwise about 45Âº and if you used 1100 it would be about -45Âº
also we need to add the ServoUpdate Subroutine before the end. this updates the servo pins.
At the end you need to close the IF command by using ENDIF
IF (DualShock(2).bit6 = 0) THEN ;Cross Button test
servo1=1500: servo2=1500: servo3=1500:
this code would center the selected servos.
the servos will move very quickly to a given position as we haven given a time command, i will go though this asap. gotta pop out for a second.