Page 1 of 1
Servo Test Program
Posted: Thu Apr 21, 2011 11:08 am
by JohnCrow
Hi
Just been having a look at the test program for the servo board.
Could you please tell me what does this statement mean in the decision box
x=1 || x=255
Have tried searching the forums, but didnt find anything like it
Thanks
Re: Servo Test Program
Posted: Thu Apr 21, 2011 11:40 am
by DavidA
Hi John,
the statement means if x=1 OR if x=255 then move into the YES part of the decision, this could have also been done with a switch statement as well.
If you already knew this and just wanted to know why the test program did this, my apologies, i would imagine since the range of the servo position is a byte (0-255) that at points 1 and 255 it may need additional time to reset its positon or return to a start point, Ben may have more insight into that though.
Re: Servo Test Program
Posted: Thu Apr 21, 2011 4:08 pm
by JohnCrow
Thanks David
No I just didnt know what the II symbol meant. I can follow every thing now.
Just bought a couple of servos to try on the servo eblock.