Go to Post Someone want to channel their inner Mark Leon and do the math? - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2002, 23:21
fs_2002's Avatar
fs_2002 fs_2002 is offline
Registered User
#0804 (TeamMetamorphisis)
 
Join Date: Jan 2002
Location: Rock Hill, SC
Posts: 29
fs_2002 is an unknown quantity at this point
Send a message via ICQ to fs_2002 Send a message via Yahoo to fs_2002
One Joystick Code

Some how i've lost my way-

I at one time found and printed a program which was the default code which was modified to use only 1 joystick. I can't find it anymore, and i can't access innovationfirst.com because it crashes my computer everytime. If anyone can help, i would greatly appriciate it.
~bobb
Team 804
__________________
"Fundrasing?!? CHILDREN????? AHHHHH!!!!"

"The Pants command me!! Do not ignore the rubber pants!"

"Word up kids, This is POOP DOG!!!"

"I MUST HAVE TACOS!!!!!"
  #2   Spotlight this post!  
Unread 15-01-2002, 23:53
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Here's a direct link to the pdf:

http://www.innovationfirst.com/FIRST...ickControl.pdf
  #3   Spotlight this post!  
Unread 15-01-2002, 23:56
s_alaniz s_alaniz is offline
Registered User
#0057 (Leopards)
 
Join Date: Jun 2001
Location: Houston, Tx
Posts: 73
s_alaniz is an unknown quantity at this point
Listing

Step 1 : Declare the variables in the "Declare Variable" section.

Example:
=============in Declare Variable section=============

PWM1 VAR byte 'define variable for use in Serout command

PWM2 VAR byte 'define variable for use in Serout command





Step 2 : Add the following to the main Program:


=============in MAIN PROGRAM section ================

PWM1 = (((2000 + p1_y - p1_x + 127) Min 2000 Max 2254) - 2000)

PWM2 = (((2000 + p1_y + p1_x - 127) Min 2000 Max 2254) - 2000)




Step 3 : Finally place PWM1 And PWM2 in the Serout command respectively.

Serout USERCPU, OUTBAUD, [255,255, PWM1, relayA, PWM2, relayB, p3_y, p4_y, p1_x, p2_x, p3_x, p4_x, p1_wheel, p2_wheel, p3_wheel, p4_wheel, 127,127,127,127]




Additional Information:

y-axis controls speed
x axis turns
PWM1 - Left Motor
PWM2 - Right Motor
  #4   Spotlight this post!  
Unread 16-01-2002, 00:47
fs_2002's Avatar
fs_2002 fs_2002 is offline
Registered User
#0804 (TeamMetamorphisis)
 
Join Date: Jan 2002
Location: Rock Hill, SC
Posts: 29
fs_2002 is an unknown quantity at this point
Send a message via ICQ to fs_2002 Send a message via Yahoo to fs_2002
Thx guys- i appriciate it, and so does my team
~bobb
Team 804
__________________
"Fundrasing?!? CHILDREN????? AHHHHH!!!!"

"The Pants command me!! Do not ignore the rubber pants!"

"Word up kids, This is POOP DOG!!!"

"I MUST HAVE TACOS!!!!!"
Closed Thread


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
question about one joystick drive programing james700 Programming 13 29-01-2003 14:49
robot goes haywire with the one joystick default code Miles Programming 7 24-01-2003 14:58
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
joystick problem archiver 2000 12 23-06-2002 23:08
switching joystick axis????? team222badbrad Technical Discussion 9 16-01-2002 23:07


All times are GMT -5. The time now is 09:30.

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