Author Topic: Centering servos, Direction control, and Position control  (Read 1280 times)

0 Members and 1 Guest are viewing this topic.

Offline thornsb1Topic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Centering servos, Direction control, and Position control
« 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!

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,150
  • Helpful? 109
Re: Centering servos, Direction control, and Position control
« Reply #1 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
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline thornsb1Topic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Re: Centering servos, Direction control, and Position control
« Reply #2 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!

 


Get Your Ad Here

data_list