by robodude666 » Sat Jun 24, 2006 4:32 pm
by robodude666
Sat Jun 24, 2006 4:32 pm
I just realized something important! RoboBasic has a command, MOVE, which is used to tell the servos to go to whatever position.
MOVE G6D, 100, 58, 135, 160, 100, 100
For example. OOPIC's language does not have such a command, at least not that I know of. You would have to move each servo by itself, eg:
s1 = 100
s2 = 58
s3 = 135
s4 = 160
s5 = 100
s6 = 100
If you want to do a few simple servo motions, such as just reset the 2 hip servos, but if you want to have long combos of servos being moved then it won't work very well because there will be a few ms delay between motions. If your making the robot flip or something of that sort or maybe thin wire act it might prove deadly as the servos wont be aligned 100% and the robot might fall over or think the servo is at 99 when its really 100 and might overdo it causing the robot to maybe fall over.
How does RoboBasic execute the MOVE command at once? Does it just do a for loop through all the arguments? Or does it send a global command out to move all the servos at once. If it uses a for loop type of thing to execute the command then it wont make that much of a difference. All you need is a strong processor to read the code and send out the commands asap.
I just realized something important! RoboBasic has a command, MOVE, which is used to tell the servos to go to whatever position.
MOVE G6D, 100, 58, 135, 160, 100, 100
For example. OOPIC's language does not have such a command, at least not that I know of. You would have to move each servo by itself, eg:
s1 = 100
s2 = 58
s3 = 135
s4 = 160
s5 = 100
s6 = 100
If you want to do a few simple servo motions, such as just reset the 2 hip servos, but if you want to have long combos of servos being moved then it won't work very well because there will be a few ms delay between motions. If your making the robot flip or something of that sort or maybe thin wire act it might prove deadly as the servos wont be aligned 100% and the robot might fall over or think the servo is at 99 when its really 100 and might overdo it causing the robot to maybe fall over.
How does RoboBasic execute the MOVE command at once? Does it just do a for loop through all the arguments? Or does it send a global command out to move all the servos at once. If it uses a for loop type of thing to execute the command then it wont make that much of a difference. All you need is a strong processor to read the code and send out the commands asap.