Hi Jeremy, you wrote:

> I have the type set to
> (4,0xE0) - rotation, angle - but cannot read a value of any use. Method
> readValue() for the canonical value gives me 0000 and the 9999 with no in
> between. Method readRawValue() gives more useful values but they jump upward
> in large increments making them not so useful.  I am missing in how 
> to read  >properly from this sensor?

Your setting of type and mode appear correct.  I assume you are 
activating the sensor. Because the raw values jump the hardware is 
probably OK.
My guess is that you are using          LCD.showNumber(Sensor.S1.readValue());
which will display  9999  when the sensor reading is negative.
I hope this solves your problem.  Good luck,
Roger

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion

Reply via email to