This project has moved. For the latest updates, please go here.

Data Returned From Different Sensors

Jan 2, 2014 at 2:03 AM
Different sensors obviously return different data depending on what type of sensor they are and what mode they are in. This may be a question more for the people at Lego than everyone here, but does anybody know of any good places to find out exactly what data is returned from the different sensors in the different modes? For sensors like the Touch sensor, it is pretty straightforward what the data is, but for other sensors like the Color sensor, it can vary much more significantly. Because the Port's PercentValue, SIValue, and RawValue properties are always the same types, knowing what to do with or how to interpret the data of those types is obviously very important. Is there anywhere that I can get good documentation on exactly what data is in the PercentValue, SIValue, and RawValue properties for different sensors in different modes? Thanks.
Coordinator
Jan 2, 2014 at 7:59 PM
The help files from the desktop LEGO MINDSTORMS software has some of this information. Some can be found if you build their developer docs from https://github.com/mindboards/ev3sources . There is also a user guide here: http://www.lego.com/en-us/mindstorms/downloads/user-guides/enus/
Jan 2, 2014 at 9:57 PM
The Lego user guide has some good stuff for getting started and using the brick, but it does not have anything about the raw data that the sensors send back. I'm not exactly sure where you were telling me to look on github, because I did not see anything called developer docs or that looked like it would have the sensor documentation, so if you could give more specific instructions for that it might help. Thanks.
Coordinator
Jan 2, 2014 at 10:59 PM
Specific path is https://github.com/mindboards/ev3sources/tree/master/lms2012/lms2012/doc . But they need to be built using doxygen. I'm not allowed to redistribute the built versions, unfortunately.