Re: Problems with Mindsensors
Ok. Let me clarify a little: (I was a little tired when I first started this topic
So. I'm trying to read a single byte from the Mindsensors Accelometer v3. If I just print it straight a way it comes out as value ranging from -128 to -65 OR 63 to 127.
What I think that happens is that the value is sent to NXT as an unsigned byte and RobotC assumes that it's a signed byte. For some reason, however, I'm not able to convert it to signed properly which I managed to do with the 2 byte values (since they are sent over to NXT as signed already). I assumed that RobotC is using the most significant bit as the sing (since there is no documentation on this)..
Here is the function with which I retreive the angle data (actually direct snippet from the sample code made by Minsensors.com but it still won't work):
I also tested the sensor on NXC and every single reading came up ok _without_ any conversions. This is something that the RobotC developer team should note.....
PS. IMHO there should be a FAQ for reading 3rd party sensors. Having one would make peoples lives so much easier.