View Single Post
  #9   Spotlight this post!  
Unread 24-09-2013, 16:23
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,738
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: RobotBuilder/Java help

Quote:
Originally Posted by TenaciousDrones View Post
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
Reply With Quote