|
Re: RobotBuilder/Java help
Quote:
Originally Posted by TenaciousDrones
No I mean a code type that is like the arcadeDrive code but it controls the camera. So one joystick for the drive train and the other for the camera.
|
I'm not aware of anything like that. If I remember right, servo's are controlled with a range of 0 to 1.0, while a joystick returns a range of -1.0 to 1.0. You could do something like passing the value from the joystick through a conversion function(something like (x+1)/2) into the servo - then releasing the joystick would center the servo, and moving it to either side would give you direct control - the amount you move the joystick would match the amount the camera moved.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
|