View Single Post
  #1   Spotlight this post!  
Unread 20-02-2012, 19:31
richwong richwong is offline
Registered User
None #1701 (Robocubs)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Detroit, MI
Posts: 60
richwong is an unknown quantity at this point
Java Encoder Limitation?

Is there a limitation to the number of encoders we can have? When trying to add more than 4 in Java, we get the following exception:

[cRIO] Uncaught exception in Thread.run():
[cRIO] on thread edu.wpi.first.wpilibj.defaultCode.DefaultRobot - main
[cRIO] edu.wpi.first.wpilibj.util.AllocationException: There are no encoders left to allocate
[cRIO] at edu.wpi.first.wpilibj.Encoder.initEncoder(Encoder. java:76)
Reply With Quote