mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
java: converted all int16_t* to short[] and updated examples
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
6e2355ce9a
commit
ba43986f82
@ -41,7 +41,7 @@ public class LSM303Sample {
|
||||
|
||||
// Get the coordinate data
|
||||
sensor.getCoordinates();
|
||||
int[] coor = sensor.getRawCoorData(); // in XYZ order.·
|
||||
short[] coor = sensor.getRawCoorData(); // in XYZ order.·
|
||||
// The sensor returns XZY, but the driver compensates and makes it XYZ
|
||||
|
||||
// Print out the X, Y, and Z coordinate data using two different methods
|
||||
@ -54,7 +54,7 @@ public class LSM303Sample {
|
||||
|
||||
// Get the acceleration
|
||||
sensor.getAcceleration();
|
||||
int[] accel = sensor.getRawAccelData();
|
||||
short[] accel = sensor.getRawAccelData();
|
||||
|
||||
// Print out the X, Y, and Z acceleration data using two different
|
||||
// methods
|
||||
|
Reference in New Issue
Block a user