View Single Post
  #4   Spotlight this post!  
Unread 01-18-2012, 10:10 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: 2012 crio II encoder java constructor

Quote:
Originally Posted by Secretspy97 View Post
Has anyone else experienced something like this? This is pretty strange because slot 1 has the analog breakout plugged in to it.
This is how it is supposed to work from now on. It no longer references slot number, but references which module. The first digital module (in slot 2 of both cRIOs) is 1. The second digital module (in slot 4 of the new cRIO or slot 6 of the old cRIO) is 2. This is so you don't have to change your code to switch between cRIOs.

Quote:
Originally Posted by kinganu123 View Post
I think there was a bug last year, can't exactly remember, but you may have to use Encoder.EncodingType.k2X or write your own Encoder.EncodingType.k4X
The bug you are probably thinking of had to do with the rate output, and would be unrelated to this problem. It was also fixed this year.

Last edited by Joe Ross : 01-18-2012 at 10:12 PM.
Reply With Quote