curieimu: Plugin to interface with the arduino101's IMU
Internal sensor onboard the Curie/Arduino101 can be accessed via Firmata using this plugin. You will need mraa compiled with -DFIRMATA=ON for this to work and be using Firmata with the CurieIMU firmata extension for ExtensibleFirmata Signed-off-by: Ron Evans <ron@hybridgroup.com> Signed-off-by: Justin Zemlyansky <jlstigman@live.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
0d20cdb25a
commit
fb5c809ff8
19
src/curieimu/javaupm_curieimu.i
Normal file
19
src/curieimu/javaupm_curieimu.i
Normal file
@@ -0,0 +1,19 @@
|
||||
%module javaupm_curieimu
|
||||
%include "../upm.i"
|
||||
|
||||
%{
|
||||
#include "curieimu.hpp"
|
||||
%}
|
||||
|
||||
%include "curieimu.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_curieimu");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user