Go to Post Finally, a Team Update that we can all agree to! - artdutra04 [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 30-06-2007, 16:01
herocreator herocreator is offline
Registered User
FRC #1682 (E.Y.E. Bots)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Riverside
Posts: 2
herocreator is an unknown quantity at this point
custom control programming question...

I have been experimenting with creating custom controls to use for future robots. So far, I have the wiring completed, but I have been having trouble finding the right variables to use for certain pins on the controller. According to this website (http://pinouts.ru/Inputs/GameportPC_pinout.shtml) each game port has pins for 2 sets of joystick axes. Unfortunately, I haven't been able to figure out which variable is controlled by these pins. Do the variables exist or do I have to program it myself? I am a novice C programmer, so if I do have to program it, where would I begin?

Thanks for your help
  #2   Spotlight this post!  
Unread 30-06-2007, 16:11
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,906
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: custom control programming question...

Take a look at: http://www.ifirobotics.com/docs/oi-ref-guide-5-8-07.pdf
It names the software variables that correspond to the OI joystick pins.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 30-06-2007, 18:28
herocreator herocreator is offline
Registered User
FRC #1682 (E.Y.E. Bots)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Riverside
Posts: 2
herocreator is an unknown quantity at this point
Re: custom control programming question...

Thanks for that it solved some problems for me. Unfortunately, it still won't work. My set up is a 100k ohm slider potentiometer connected to pins 1 and 13. The motor it should control is being controlled by p1_wheel. Nothing happens though, except I get an Aux Fault on the OI when the potentiometer is at 0.

I understand what the Aux Fault is, but not why I am getting it. It works perfectly when used with the standard p1_x and p1_y.

Last edited by herocreator : 30-06-2007 at 18:47.
  #4   Spotlight this post!  
Unread 30-06-2007, 22:41
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: custom control programming question...

I think that the OIs measure voltage, not resistance. If this is the case (its been a loooooooong time...), you need to connect one end to +5, one end to ground, and the middle pin to the input. This forms a voltage divider.

good luck!
  #5   Spotlight this post!  
Unread 03-07-2007, 12:54
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: custom control programming question...

In the future, you may want to use the Dashboard to check values (if you're not already).
  1. Download and install the Dashboard viewer from IFI
  2. Run the dashboard viewer
  3. Plug a serial cable into the dashboard port and into your computer.
  4. Set the COM port in the Dashboard viewer
  5. Move the jumper on the OI next to the dashboard port from RC to OI
  6. Make sure that the RC is tethered and on or that the OI is connected to a radio (otherwise, no data is sent)

This will avoid any possible software bugs you may have when testing your hardware.
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
Custom Pneumatics - Control Board Selection? Erin Rapacki Electrical 3 03-04-2007 17:21
pic: brand new custom built control center eshteyn Extra Discussion 35 14-01-2007 22:49
Custom programming cable thegnome Programming 2 07-02-2004 17:07
Custom Control Box D.Viddy Programming 3 15-02-2003 11:35
White Paper Discuss: VB .NET Dashreader custom control source CD47-Bot Extra Discussion 2 19-01-2003 19:32


All times are GMT -5. The time now is 01:21.

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