mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Added iMagnetometer interface
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
aa966946d5
commit
f28a6d2561
@ -62,15 +62,15 @@ public class BMI160_Example
|
||||
+ " GZ: "
|
||||
+ dataG.get(2));
|
||||
|
||||
float dataM[] = sensor.getMagnetometer();
|
||||
AbstractList<Float> dataM = sensor.getMagnetometer();
|
||||
|
||||
System.out.println("Magnetometer: "
|
||||
+ "MX: "
|
||||
+ dataM[0]
|
||||
+ dataM.get(0)
|
||||
+ " MY: "
|
||||
+ dataM[1]
|
||||
+ dataM.get(1)
|
||||
+ " MZ: "
|
||||
+ dataM[2]);
|
||||
+ dataM.get(2));
|
||||
|
||||
System.out.println();
|
||||
Thread.sleep(500);
|
||||
|
@ -24,10 +24,12 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import upm_interfaces.*;
|
||||
import upm_bmm150.BMM150;
|
||||
import java.util.AbstractList;
|
||||
import java.lang.Float;
|
||||
|
||||
|
||||
public class BMM150_Example
|
||||
{
|
||||
public static void main(String[] args) throws InterruptedException
|
||||
|
@ -82,7 +82,7 @@ add_example(BME280_Example "bmp280;interfaces")
|
||||
add_example(BMG160_Example "bmg160;interfaces")
|
||||
add_example(BMI055_Example "bmx055;interfaces")
|
||||
add_example(BMI160_Example "bmi160;interfaces")
|
||||
add_example(BMM150_Example bmm150)
|
||||
add_example(BMM150_Example "bmm150;interfaces")
|
||||
add_example(BMP280_Example "bmp280;interfaces")
|
||||
add_example(BMPX8X_Example "bmpx8x;interfaces")
|
||||
add_example(BMX055_Example "bmx055;interfaces")
|
||||
|
Reference in New Issue
Block a user