Go to Post FIRST is here to reach the affluent, already college-bound students with boundless resources; it is also here to reach the poverty-stricken urban and rural students who don't see a diploma as worthwhile, and everybody in between. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2011, 17:25
Pat_Cunningham Pat_Cunningham is offline
Registered User
FRC #0178
 
Join Date: Jan 2011
Location: Farmington, Connecticut
Posts: 5
Pat_Cunningham is an unknown quantity at this point
Encoder problems

Hello,
We are having an issue which the code says that there is already something on "Slot 4 Channel 4" whenever I use the encoders. But the problem is that our encoder isn't on "Slot 4 Channel 4" and it doesn't matter if there is something in "Slot 4 Channel 4" or not it throws that error.

Thanks,
Pat Cunningham
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 17:54
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Encoder problems

Do you assign two sensors to the same channel? Thats what I've seen cause that error.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2011, 18:49
Amanda_Theilman Amanda_Theilman is offline
Registered User
FRC #0178
 
Join Date: Jan 2011
Location: Farmington Connecticut
Posts: 3
Amanda_Theilman is an unknown quantity at this point
Re: Encoder problems

I'm also from team 178, and no, we did not have two sensors plugged into the same port - we checked that already.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2011, 19:07
ArchVince's Avatar
ArchVince ArchVince is offline
Registered User
FRC #1290 (Si Se Puede)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Chandler High School
Posts: 26
ArchVince will become famous soon enough
Re: Encoder problems

No, that isn't what he meant. If you accidentally assigned two to the same port in your code, that's when the error would arise.
__________________
PETA wants your help finding Schrödinger.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2011, 19:10
Amanda_Theilman Amanda_Theilman is offline
Registered User
FRC #0178
 
Join Date: Jan 2011
Location: Farmington Connecticut
Posts: 3
Amanda_Theilman is an unknown quantity at this point
Re: Encoder problems

The code only has one pointer to slot 4 channel 4
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2011, 20:18
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Encoder problems

Quote:
Originally Posted by Amanda_Theilman View Post
The code only has one pointer to slot 4 channel 4
I'm 99% sure the code defaults to slot 4, so if your code has anything like this:

Code:
Servo/Victor/Whatever object = new Blah(4);
Would also produce the same error, whether you're including the slot argument or not.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote
  #7   Spotlight this post!  
Unread 21-02-2011, 00:35
ArchVince's Avatar
ArchVince ArchVince is offline
Registered User
FRC #1290 (Si Se Puede)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Chandler High School
Posts: 26
ArchVince will become famous soon enough
Re: Encoder problems

To be able to help you further I'd need to see your code.
__________________
PETA wants your help finding Schrödinger.
Reply With Quote
Reply


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


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

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