mirror of
https://github.com/eclipse/upm.git
synced 2025-12-16 22:05:18 +03:00
java: fix return types and arrays for mpu60x0 and mpu9150
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
83cb6dc2fd
commit
7afd1f3fc1
@@ -100,3 +100,12 @@ void MPU9150::getMagnetometer(float *x, float *y, float *z)
|
||||
if (z)
|
||||
*z = mz;
|
||||
}
|
||||
|
||||
#ifdef SWIGJAVA
|
||||
float *MPU9150::getMagnetometer()
|
||||
{
|
||||
float *v = new float[3];
|
||||
getMagnetometer(&v[0], &v[1], &v[2]);
|
||||
return v;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user