Go to Post FIRST is not the party- its the people. We can have a great competition no matter where we hold it. - Wayne C. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one wheel drive Simon Strauss Technical Discussion 11 16-11-2005 23:58
One Joystick Drive mattsavela Programming 20 19-05-2005 21:28
FIRST's one hour drive Duke 13370 Motors 4 25-02-2003 17:29
one stick drive Hendrix Programming 3 14-02-2003 20:53
question about one joystick drive programing james700 Programming 13 29-01-2003 14:49


All times are GMT -5. The time now is 20:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi