Go to Post So next time you speculate, label it as such and not as established fact. Please. Bad information is worse than no information. - DonRotolo [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 06-02-2007, 16:52
Team 849 Team 849 is offline
Registered User
FRC #0849
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Canada
Posts: 7
Team 849 is an unknown quantity at this point
Need help with joystick.

For our arm this year, we intend to use one joystick and on our joystick we have many thumb buttons as well as a wheel. What we need help with is how to program multiple buttons on a joystick on easyC, as well as set PWMs according to which button was pressed...

Any help would be much appreciated. Thank you!
  #2   Spotlight this post!  
Unread 06-02-2007, 17:31
Syncopation's Avatar
Syncopation Syncopation is offline
I can't make a dongle outta 25-pin!
FRC #0932 (Memorial Circuit Chargers)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Tulsa, OK
Posts: 34
Syncopation has a spectacular aura aboutSyncopation has a spectacular aura aboutSyncopation has a spectacular aura about
Send a message via ICQ to Syncopation Send a message via AIM to Syncopation Send a message via MSN to Syncopation Send a message via Yahoo to Syncopation
Re: Need help with joystick.

I typically use OI to Relay and OI to PWMs for buttons. (under RC Control on the Function Block tab in the sidebar)

Most of the instructions in the blocks are self-explanitory, but you just specify the controller port (on the OI), the button for relays (use printf statements to find what buttons correspond to which number if you aren't using the white controller FIRST gives) or the axis for PWMs, the PWM/relay number (on the RC board), and the direction (forward or back for PWMs, for relays, they correspond to on/off - 1/0).

Hope that helps!
__________________
Team 932:
2008 Oklahoma City Xerox Creativity Award
2008 Oklahoma City Autodesk Visualization Award
2008 St. Louis Chairman's Award winner
Home of the 2008 St. Louis Woodie Flowers mentor
2007 Kansas City Engineering Inspiration winner
2006 Lone Star Regional Finalist alliance member

---
A mathmatician, a physicist, and an engineer were all given a red rubber ball and told to find the volume.
The mathmatician carefully measured the diameter and evaluated a triple integral.
The physicist filled a beaker with water, put the ball in the water, and measured the total displacement.
The engineer looked up the model and serial numbers in his red-rubber-ball table.
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
Help with joystick lightning_blast Programming 2 12-02-2006 22:25
Help with Joystick connections ace123 Control System 4 19-02-2005 13:25
need help w/ joystick code willie837 Programming 6 02-02-2005 23:17
We need help with joystick control Team ICE #1611 Control System 4 24-01-2005 15:57
Help with code single joystick JamesBrown Programming 9 19-01-2005 00:42


All times are GMT -5. The time now is 22:42.

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