View Single Post
  #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.