
irobot58
Canada
Asked
— Edited
I am continuing to test my new Kit and servos with various commands. Servo(D*) (=whatever port chosen) works fine, ServoRandom(D) works great, ReleaseAll() works well.....but.......Release(D*) comes back with an error of " Unknown servo Port D(*)! I would appreciate anyone trying their Release(D1) (or whatever port) and verifying. Thank you!
To add to this thread,using a ServoSpeed(d1,25) before or after Servo(D1,10) Sleep(2000) Servo(D1,90) ,ReleaseAll(), then removing the ServoSpeed command with a # at the script line, it does not return to its normal speed until I reboot(pwr off and on the EZ board and reestablish the connection)? Perhaps there is a tutorial on this specific observation/test?
I see the release() issue and it's resovled for next release. However, i do not understand your last paragraph. Can you expand on the grammar and format your code so i can read it
I re-read your paragraph to try and understand - are you stating this...
This code moves the servo slowly and sets the speed to 25
This code moves the servo slowly and sets the speed to 25. And you expected the servo to move at regular speed because you "commented out the ServoSpeed" command?
Once you set the speed for a servo, it is set. For example, pretend I came to your home and placed a chicken on your kitchen counter, and then I left your home. When I return to your home the next day, the chicken will still be there - unless you or someone else moved it. When you tell something to happen, it happens until you tell it to stop happening.
Commenting code does not mean "reverse the command". For example, I can comment about the chicken I placed on your counter - but my comment will not remove the chicken from your counter.
:)
What you want to do is change the speed back..
Eureka! Thank You DJ for the Release problem resolve and explanation of the ServoSpeed set and then resetting. I must and now understand # is for comments only!
Two trbls in one bag resolved!
Best regards , Glen
Did you like my chicken story?
YES I did
and still holding my stomach from laughing so hard...but the chicken would never be left overnight on my counter because it would be put in the oven for all the EZ robot builder guests dinner! Ever come out west to Vancouver Island? Your welcome anytime...for a chicken dinner... and a day of sailing on my vintage1939 Sea Witch!
Oh! I'll be touring the island in August actually! I visit usually once a year to do some biking - but I didn't this past year