View Single Post
  #10   Spotlight this post!  
Unread 04-02-2010, 15:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: NEED HELP WITH SERVOS!!

Quote:
Originally Posted by EagleS!! View Post
I just expect code to move camera by 10 degrees when button8 is pressed. But when pressed, nothing happens.
Can you probe the values while the code is running to see if the input to the Set Angle vi is changing?

Is the robot enabled using the Driver Station?

Is the Robot Status Light on the Digital Sidecar on and winking off for a moment every second and a half?

Is the 6v power jumper installed for the PWM channel that the servo is connected to?

Is the 6v light on the Digital Sidecar lit?

If you try to turn the servo by hand, does it go where you put it, or does it resist motion and try to stay in the same position?



Once you get the servo to respond, you're only partway there. You will need to add something that only changes the servo angle when the button value changes from false to true. That means remembering the previous value so you can test against it. I use something called a Feedback Node to do that.



The red dot won't break anything. Apparently it's there because the Servo vi data types aren't consistent, and there really isn't much you can do about it.
Reply With Quote