-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Dear,
First of all, thank you for sharing this great lib and I am sorry if this is not the right place to ask this.
I am completely new to this and I am trying to integrate LSM9DS1 sensor from ST Micro.
This sensor is a combo, which includes 3D Accel, 3D Gyro and 3D Mag in the same chip.
I alreay have a Linux Device driver for it which creates 3 instances of input polled devices: lsm9ds1_acc, lsm9ds1_gyro and lsm9ds1_mag.
I tried to follow the L3G4200D gyro from the source code and created 3 new files:
sensors/lsm9ds1_accel.c
sensors/lsm9ds1_gyro.c
sensors/lsm9ds1_mag.c
These are very straightforward files, which I could understand easily.
Now comes my question: What is the wrapper sections?
Reading the source code, it seems that this is a section for a kind of sensor fusion and for data conversion, where you can add "virtual" support for other Android Sensors from the data acquired from your existing sensors and convert measurements to default units. Is my understanding correct?
Which files should I add to the sensors/wrappers folder?
I created the ones below, but I am not sure if this is correct. Mainly about the "magnetometer" one.
sensors/wrappers/lsm9ds1_accelerometer.c
sensors/wrappers/lsm9ds1_gyroscope.c
sensors/wrappers/lsm9ds1_magnetometer.c
If my understanding is correct, I would like also to use the iNemo lib to add support for more sensors. How can I do this?
Thank you!