Asked
— Edited

Not having any luck with this script! The head isn't turning as it should. The Camera Control indicates that it is recording, however, I can't find the recording where it says it should be. Any help appreciated. Thanks
#start head in this position
servo(D1,110)
servospeed(D1,0)
sleep(500)
#start video recording
ControlCommand("Camera", CameraRecordStart)
sleep(50)
#head should move to the left in increments of 10 degrees
ServoUP(D1,10)
servospeed(D1,2)
sleep(5000)
$x=Getservo(D1)
sleep(500)
#when the head gets to 150 degrees it should move to the right
if($x > 150)
servoDown(D1,10)
servospeed(D1,2)
sleep(5000)
#when the head gets to 50 degrees it should go back to starting position
elseif($x < 50)
servo(D1,110)
endif
#stop video recording
ControlCommand("Camera", CameraRecordStop)
Stop()
Wow, all I wanted was a simple script to turn my robots head from side to side while taking a video. I got it working, except for the video recording. Anyway, what an interesting discussion this has turned into, I've learned a lot. Richard R I like your translation! So back on topic - DJ, how's that video recording fix coming along?
bob, ha - i have huge weights on my shoulders for that video recording from different people. We have a 300 page education curriculum that is depending on it being done in the next few weeks!
Lol, thanks for the lesson guys. Actually I was just kidding around as I do know kinda what this is. In need to be carefull of what i ask for. However I didn't know all this and am truly glad I asked. Thanks again.
@Dave.... I was just kidding Dave. I knew you knew the difference....
@Bob.... Sorry for the hijack Dude.... So yes, video recording would be nice. I thinking of having my inMoov give out candy for Halloween this year.... I want to be able to record the looks on the kid's faces when a 6 ft tall robot answers the door instead of a human....