View Single Post
  #3   Spotlight this post!  
Unread 11-01-2012, 01:12
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,112
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: ADXL345 Accelerometer Troubles (examples give errors)

Quote:
Originally Posted by gerberduffy View Post
Code:
        i2c = DigitalModule.getInstance(2).getI2C(slot);
What is "slot"? If you're trying to specify a digital module, don't refer to it by its cRIO slot number. The first installed module (in slot 2) is module 1.

Quote:
Every time we try to read the ADXL345, we get this output:

[frcrun] [cRIO] Digital module 2 is not present.
That's a pretty specific error message. Do you indeed have a second digital module installed?

Quote:
I was looking through SensorBase, and this javadoc on SensorBase.checkDigitalModule() looked interesting:
Module numbers are 1 or 2 (they are no longer real cRIO slots).

I'm not sure how to deal with this, and any help would be greatly appreciated.
I know what it means, so I can't be sure it's as self-explanatory as it looks, but you deal with it by addressing the digital module as either number 1 or number 2, depending on whether it's the first module (in slot 2) or the second (in slot 4 of a 4-slot or slot 6 of an 8-slot cRIO).
Reply With Quote