View Single Post
  #1   Spotlight this post!  
Unread 22-09-2013, 01:47
RBB RBB is offline
Registered User
AKA: Ben Evans
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mountain View
Posts: 7
RBB is an unknown quantity at this point
Converting Two joystick values into a vector

Hey everyone,

Our code takes in a vector (direction and magnitude) in order to move. This was implemented in order to simplify PID. We have been using a wheel and a joystick for our driver setup, but we are looking to switch to two joysticks.

Now to my main question. Is there any way to take the values of the left and right joysticks and turn them into a vector? I have seen ways to go from a vector to left and right motor power, but not the other way around.

Thanks.

Ben