View Single Post
  #6   Spotlight this post!  
Unread 02-07-2014, 12:56
ekovacs ekovacs is offline
Registered User
AKA: Evan Kovacs
FRC #2539
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Palmyra, PA
Posts: 21
ekovacs is on a distinguished road
Re: Kaj Drive in c++?

Quote:
Originally Posted by Joe Ross View Post
ekovacs example above is using the following form of ArcadeDrive.
Code:
void ArcadeDrive(float moveValue, float rotateValue, bool squaredInputs = true);
It doesn't matter where the moveValue and rotateValue come from. You could read from a second joystick, or a sensor, or anything else.
This is the form that we used, with the moveValue coming from a the left thumb stick/dpad on a controller and the rotateValue coming from the right thumb stick. But as Joe said, the values can come from anywhere.
Reply With Quote