Go to Post I dont compete to win prizes, I compete to win Pride. - CircularLogic [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 03-12-2003, 23:13
GregTheGreat's Avatar
GregTheGreat GregTheGreat is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 386
GregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura about
Re: Help On Coding 2K1 Controller

Quote:
Originally Posted by rbayer
Your code is fine. Are you sure it's not an electrical problem? Trying doing the following:

debug? p1_sw_trig
debug? p1_sw_top
...etc, etc

they are never triggered. I thought of this last night when i was working on it... It as if the buttons are not being recongized. It is not electrical since I can run all relays to and even number controller input (2 or 4)

-Greg The Great
  #2   Spotlight this post!  
Unread 04-12-2003, 00:37
Sachiel7's Avatar
Sachiel7 Sachiel7 is offline
<Yes I managed to flip it
AKA: Shayne Helms
FRC #1132 (RAPTAR Robotics)
 
Join Date: Sep 2002
Rookie Year: 2002
Location: Richmond, VA
Posts: 541
Sachiel7 is just really niceSachiel7 is just really niceSachiel7 is just really niceSachiel7 is just really niceSachiel7 is just really nice
Send a message via AIM to Sachiel7
Re: Help On Coding 2K1 Controller

You might have bad joysticks. Unplug the connector to ensure all the pins are lined up right, and make sure it's plugged in all the way. If it is, then hook it up to a PC and setup a 3axis 2-button (I'm guessing you're using the joysticks from the kit) joystick. Test it's buttons. That *may* solve your problem. If it works on your PC, a few quick questions/points:
-Your OI connection might be bad...
- Which version of PBasic are you using?
- Are you using a y-cord?

Just to name a few. A list of your control setup might help. But as stated before, I think it's a problem with your inputs, not the programming.
__________________
-=Sachiel7=-

There's no such thing as being too simple!
Look for Team #1132, RAPTAR Robotics at the VCU Regional this year!
  #3   Spotlight this post!  
Unread 04-12-2003, 08:43
GregTheGreat's Avatar
GregTheGreat GregTheGreat is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 386
GregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura about
Re: Help On Coding 2K1 Controller

Quote:
Originally Posted by Sachiel7
You might have bad joysticks. Unplug the connector to ensure all the pins are lined up right, and make sure it's plugged in all the way. If it is, then hook it up to a PC and setup a 3axis 2-button (I'm guessing you're using the joysticks from the kit) joystick. Test it's buttons. That *may* solve your problem. If it works on your PC, a few quick questions/points:
-Your OI connection might be bad...
- Which version of PBasic are you using?
- Are you using a y-cord?

Just to name a few. A list of your control setup might help. But as stated before, I think it's a problem with your inputs, not the programming.

Oh, how I wish it was something easy like bad joysticks.... (Then i could just get new ones)

I will give you the 411 on what I know....

The joysticks all work on port 2 and 4.... I ran button checks on the computer and through the dashboard viewer and all the axies work. The problem is just in my buttons on OI port 1 and 3.... I find it somewhat odd that the number on which the problem I am having trouble on are both odd ports.... Now heres the real kicker..... I am using the 2.0 software as well as the 2.0 default program.... I was tempted to run the 2003 default software but I didn't know if it was compadable. It is not hardware and I dought their is a problem in the OI someware... Remember if their is a problem at a match the first thing that is looked at in detail is the programming.... I still think their is a problem in my coding.... seeing as it is just the button on the odd # ports.... and since thats how in the end the ports are split up for the relay's.

If you have in more ideas they would greatly help....

Thanks For The Help All,

-Greg The Great
  #4   Spotlight this post!  
Unread 04-12-2003, 09:55
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Help On Coding 2K1 Controller

Quote:
Originally Posted by GregTheGreat
The joysticks all work on port 2 and 4.... I ran button checks on the computer and through the dashboard viewer and all the axies work. The problem is just in my buttons on OI port 1 and 3.... I find it somewhat odd that the number on which the problem I am having trouble on are both odd ports....
Are the "disable" DIP switches set correctly on your OI? See page 17 of this document. Quote: "The DISABLE dipswitch is used to disable buttons on joysticks connected to PORT 1 and PORT 3."
  #5   Spotlight this post!  
Unread 05-12-2003, 18:35
GregTheGreat's Avatar
GregTheGreat GregTheGreat is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 386
GregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura about
Re: Help On Coding 2K1 Controller

Quote:
Originally Posted by Dave Flowerday
Are the "disable" DIP switches set correctly on your OI? See page 17 of this document. Quote: "The DISABLE dipswitch is used to disable buttons on joysticks connected to PORT 1 and PORT 3."

Thank You VERY MUCH! This was the problem... Thanks Again...

-Greg The Great
  #6   Spotlight this post!  
Unread 04-12-2003, 09:56
Steve Shade Steve Shade is offline
Registered User
no team
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1999
Location: Pasadena, MD
Posts: 78
Steve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud ofSteve Shade has much to be proud of
Re: Help On Coding 2K1 Controller

Greg:

Check the OI to make sure the Disable Dipswitches are not enabled. These switches disable the switch inputs on ports 1 and 3 and reassign these inputs to ports 2 and 4. See page 17 of the old Operator Interface Reference Guide for more information. If you can't find the guide online send me an e-mail or pm with your e-mail and I'll send it your way.

Steve
  #7   Spotlight this post!  
Unread 04-12-2003, 10:01
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Re: Help On Coding 2K1 Controller

Quote:
Originally Posted by GregTheGreat
Now heres the real kicker..... I am using the 2.0 software as well as the 2.0 default program.... I was tempted to run the 2003 default software but I didn't know if it was compadable.
Yes, you can use the new editor / tokernizer and the new code with an older controller. We used either the 2002 or 2001 controller with our prototype robot and the exact same code as our real robot this year and we did not have any problems with it. It worked exactly like the 2003 controller.

As you mentioned, it's odd that the problem is only on ports 1 & 3. Both of those are read in and stored in 'oi_swA' so that's the first place to look. I've fogotten some of the common coding problems in the old controller, but the ones I remember - telling the controller you want to grab the byte from the stream, and actually including the byte in the stream - look good. Try printing out 'oi_swA' immediately after it's read in from the data stream.
  #8   Spotlight this post!  
Unread 05-12-2003, 09:28
GregTheGreat's Avatar
GregTheGreat GregTheGreat is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 386
GregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura aboutGregTheGreat has a spectacular aura about
Re: Help On Coding 2K1 Controller

Allright I will try all of this fun stuff tonight, seeing as I am at school right now... I believe you might be right about the disable dip-switches seeing as my # is on 000 right now...

Thanks,

-Greg The Great
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
C controller Rorschach Kit & Additional Hardware 1 29-10-2003 19:21
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30
Visibility of Robot Controller and Reset Button Tracy Rules/Strategy 1 17-02-2003 07:36
How do you connect the speed controller fans? Iain Electrical 7 31-01-2003 07:05
visibility of robot controller? davidzhang Rules/Strategy 5 26-01-2003 01:11


All times are GMT -5. The time now is 19:51.

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