Go to Post A dedicated team is a happy team. - sgreco [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2004, 15:52
KWalsh KWalsh is offline
Registered User
#1191
 
Join Date: Feb 2004
Location: Pittsburgh
Posts: 14
KWalsh is an unknown quantity at this point
One Joystick Control

How might I map all controls for all four of my motors to one joystick control? Can someone help? I think I know how, by changing all instances of p2_y, p3_y, and p4_y to p1_y, but im not sure, can someone help ASAP!? Needs shipped in two days....
  #2   Spotlight this post!  
Unread 24-02-2004, 15:59
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: One Joystick Control

it is in the default code. just comment out the part above it that states te 2 joystick drive mappings. i think you do that at least.
  #3   Spotlight this post!  
Unread 24-02-2004, 16:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: One Joystick Control

Quote:
Originally Posted by KWalsh
How might I map all controls for all four of my motors to one joystick control? Can someone help? I think I know how, by changing all instances of p2_y, p3_y, and p4_y to p1_y, but im not sure, can someone help ASAP!? Needs shipped in two days....
The following lines in Default_Routine() do that assuming two motors on each side. Just use pwm13/14 for left motors and pwm 15/16 for right motors
Code:
pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2004 at 16:10.
  #4   Spotlight this post!  
Unread 24-02-2004, 16:01
KWalsh KWalsh is offline
Registered User
#1191
 
Join Date: Feb 2004
Location: Pittsburgh
Posts: 14
KWalsh is an unknown quantity at this point
Re: One Joystick Control

I actually just saw that too, thanks anyway guys, Im an idiot, thats why ill be a computer network specialist and not a programmer!
  #5   Spotlight this post!  
Unread 24-02-2004, 17:53
ChrisA's Avatar
ChrisA ChrisA is offline
Registered User
#0857 (Superior Roboworks)
Team Role: College Student
 
Join Date: Feb 2002
Location: Michigan Tech
Posts: 157
ChrisA is on a distinguished road
Send a message via AIM to ChrisA
Re: One Joystick Control

Quote:
Originally Posted by KWalsh
I actually just saw that too, thanks anyway guys, Im an idiot, thats why ill be a computer network specialist and not a programmer!
Let's not give Computer Networking a bad name here.
__________________
Programmer
----------------
Team#857
Superior Roboworks

WildStang Alum
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
Changing 1 joystick code to 2 (rookie team) Brawler006 Programming 5 20-02-2004 17:00
how do i control a piston with a joystick Ryan Foley Programming 2 27-05-2003 17:13
robot goes haywire with the one joystick default code Miles Programming 7 24-01-2003 14:58
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 04:19.

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