|
Re: Help with servos
You can connect the joystick output to two servos, and Negate one of them.
You could also use joystick buttons:
Use a logic switch (from the Comparison palette) and connect the switch (center input) to one of the buttons. True would set the value if you press the button, False would set the value if you don't press the button. Once again, you can connect it to both servos and Negate one. I recommend the not-pressed state to be closed if you do this, since claws are closed most of the time.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|