Go to Post Its never too early to start dreaming. - Robert Cawthon [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
  #16   Spotlight this post!  
Unread 18-02-2007, 23:53
meatmanek meatmanek is offline
Programmer/physicist/mathematician
FRC #0868 (TechHounds)
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Carmel, Indiana
Posts: 142
meatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to behold
Re: Encoder Problemo

The encoders need to be plugged into digital inputs 1 through 6. Those digital inputs are interrupt pins, and without interrupts, kevin's code doesn't work.
  #17   Spotlight this post!  
Unread 19-02-2007, 10:09
Seamus's Avatar
Seamus Seamus is offline
fattest man west of the equator
AKA: Fatman
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: The Future
Posts: 4
Seamus is an unknown quantity at this point
Re: Encoder Problemo

Ithink that we are wired correctly

Do we have to call any function besides Encoder Initialization oroutside the readme?
  #18   Spotlight this post!  
Unread 19-02-2007, 10:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder Problemo

Quote:
Originally Posted by Seamus View Post
Ithink that we are wired correctly
Wouldn't you rather be certain that the wiring is correct? If you tell us exactly how it's connected, we can tell you if there's something you misunderstood about the wiring and need to change to make it work.
  #19   Spotlight this post!  
Unread 19-02-2007, 13:03
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Encoder Problemo

Here is a quick program I wipped up in easyC you can use to test your encoders.

Encoder 1 - Plug into I/O Port 1 (Channel A)
Plug into I/O Port 7 (Channel B)

Encoder 2 - Plug into I/O Port 2 (Channel A)
Plug into I/O Port 8 (Channel B)

Source:
Code:
void OperatorControl ( void )
{
      StartQuadEncoder ( 1 , 7 , 0 ) ;
      StartQuadEncoder ( 2 , 8 , 1 ) ;
      while ( 1 )
      {
            PrintToScreen ( "Encoder 1: %5ld   Encoder 2: %5ld\n" , (long)GetQuadEncoder ( 1 , 7 ), (long)GetQuadEncoder ( 2 , 8 ) ) ;
      }
}
Attached is pre compliled program incase you don't have easyC installed. You can upload it to your robot with IFI loader.
Attached Files
File Type: zip help_encoder.zip (18.1 KB, 16 views)
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
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
Encoder Problems bjimster1 Programming 2 10-02-2007 08:04
Encoder Error Anime-niac_2.9 Programming 1 27-01-2007 16:23
Encoder Problem DustinB_3 Programming 22 03-01-2007 20:42
Encoder help Windward Programming 21 14-01-2006 15:10
encoder.c Gary Bonner Programming 2 14-01-2005 13:41


All times are GMT -5. The time now is 04:12.

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