View Single Post
  #2   Spotlight this post!  
Unread 11-02-2015, 08:12
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Java x axis on joystick

Quote:
Originally Posted by whitetail View Post
Hello my team is a rookie team 5407. We are trying to get the Joysticks X value to use to control the winch much like the drive system but for a winch any help would be great. We are programing in Java.
You can do something like this.

Code:
motor.set(joystick.getX());
What robot base are you working with? Iterative, Sample, or Command Based? If you post where in your code you'd like to do this I can help a bit more.

Remember when posting code to place a [/code] after the code and a [code] before to code to make it easier to read in a forum.
Reply With Quote