|
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;
}
__________________
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
|