View Single Post
  #3   Spotlight this post!  
Unread 27-04-2010, 16:21
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Servo on joystick

If you are using Labview, or any environment for that matter, it is quite simple. Check the state of a given input, in this case a button on the joystick. When the input is false, give one value to the servo. When that input is true, give a different value to the servo.

See the pictures below for an example.

In c it might be something like:

Code:
if digin1 == 1
{
  servo1 = 118;
}
else
{
  servo1 = 75;
}
Attached Thumbnails
Click image for larger version

Name:	False servo.JPG
Views:	70
Size:	23.3 KB
ID:	9063  Click image for larger version

Name:	True Servo.JPG
Views:	48
Size:	21.3 KB
ID:	9064  
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist