View Single Post
  #7   Spotlight this post!  
Unread 10-02-2010, 15:53
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Need help w/ moving Camera Servo motors.

Quote:
Originally Posted by Alan Anderson View Post
If you open up the SetAngle vi you can see how it works. It takes the angle and normalizes it to 0-359, then converts that to a number from 0 to 1 based on the angular range of the servo. The default range is 170 degrees.

What you should do is choose an appropriate increment. If you use 0.01 instead of 1, your servo will work as you expect with 100 steps of travel. (This assumes that the rest of your code is correct. Things are scrunched enough that I can't really read it well.)
Sorry about the double post and sorry about the code. Maybe I should have kept the lightbulb mode off so everyone could read the code more clearly.

I will try changing the increment tomorrow, since school is closed today.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote