Society of Robots - Robot Forum

Software => Software => Topic started by: thornsb1 on October 19, 2010, 10:47:13 PM

Title: Centering servos, Direction control, and Position control
Post by: thornsb1 on October 19, 2010, 10:47:13 PM
Hi again, Guys! I am using Webbot Project Designer for an Axon 2. Also, I am compiling in the AVR Studio. I wanted to make my servo start at a different position so I tried changing the center number in the function "servosetconfig() but nothing changes. I also wanted it to turn left instead of right, but no luck using the invert command. Can someone send me an example of code that will allow me to control this? Thanks a lot guys!
Title: Re: Centering servos, Direction control, and Position control
Post by: Webbot on October 21, 2010, 05:58:34 PM
It would be easier to see your code to understand how you are currently trying to do it
Title: Re: Centering servos, Direction control, and Position control
Post by: thornsb1 on October 23, 2010, 11:51:40 PM
It turns out that I discovered why my servo was not responding to servoSetConfig() commands. It is designed for 360 degree rotation. All my servos respond just fine to this command (the ones that do not have continuous rotation). However, I can configure them in the project designer before i ever run the code, although I sacrifice some speed by doing so. In addition, I have gotten good results so far using the servo position calculator found elsewhere in this forum. I don't know why I did not see some of this stuff before in the manual for Webbot, but most of it was there. Now, my only task will be to get my commands out of a loop structure so that I can stop the servos at certain positions while other servos are doing their thing while in that position. Back to class for me!