View Single Post
  #1   Spotlight this post!  
Unread 16-02-2008, 15:47
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
One joystick drive

Hi,

I'm trying to get something better than the default one joystick drive, but I don't really understand the concept of turning the x and y joystick values into values for each wheel motor (2 motors).

I'm planning on doing something along the lines of using a lookup table to make the robot more handlable, using thisa function instead of a look up table:

Code:
long ramping (unsigned char ramp)
{
    long answer = 0;
    answer =  ((long)ramp - 127);
    answer = ((answer) * (answer) * (answer));
    answer = ((answer) / (128 * 128));
    answer = (answer) + (127);
    return answer;
}
Can someone explain the concept for turning the joy stick values on each axis into something for each motor?

Thanks

edit - sorry for the typo in the name of the thread, I can't change it.

Last edited by bronxbomber92 : 16-02-2008 at 17:07.