Recently in the use of the Android mobile terminal sensor data Studio development for analysis, such as acceleration sensor, now encounter problems as follows:
1) top JavaAPI directly read sensor data is a 32-bit float type (IEEE754 binary format), but the sensor product manuals sensor is 16 bit ADC -, 16 bit ADC converted at the bottom of the data and what is the corresponding relationship between the top 32 float value?
2) what method can directly read the underlying sensor ADC sampling after 16 bit binary data?
Thanks for your bosses! Be very grateful!
CodePudding user response:
Recoding into a byte array