Hi all,
I got a Optical Distance sensor from Mindsensors the other day. i noticed that there was not a class for this in the API and I started working on one. Everything looks to be working fine and i'm almost done. But i have two questions related to this little project.

How would i go about submitting this class to be in the next release?

ADPA is off by default and i notice if i call setAddress(0x02); the sensor no longer works. is setAddress() only to be called if ADPA is enabled?

I also saw mindsensors has the RCX Sensor Mux in beta has any one applied to get one of the test muxs? I'm emailing them to apply but i don't want to do double work if someone is already working on a class.

setAddress is not dependent on ADPA. What do you expect setAddress to do? All the setAddress method in I2CSensor does is tell leJOS what I2C address the sensor uses. leJOS addresses are shifted one bit from the addresses given in the mindsensors documentation, so address 1 in leJOS is address 0x02 in the documentation. This needs explaining in the javadocs.

I was entering 2 in to setAddress which bumped it to 3 which is why the sensor would not work.Your right it does need a little explaining.Is there a reason that the address needs to be increased its misleading.