Skip to contentSkip to conversation

TODO task for MMA8452 Accelerometer

DISCUSSION Martin Kepplinger 3 participants 3 messages Nov 2, 2016 – Nov 5, 2016 1 message not in the archive IIO

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Am 02.11.2016 16:50 schrieb Mani Sadhasivam:

Quoted 1 line

Hi Martin/Peter,

Hi Mani,

It'd be nice to keep a relevant public list in CC, in this case linux-iio or kernelnewbies

Quoted 5 lines

This is Mani, working on MMA8452 Accelerometer with Beaglebone black. I just wanna know whether the TODO : 'Orientation events' task for this Accelerometer is undergoing or not. If not, can I work on the same under your mentoring.

It's not done and not being worked on (afaik).

Quoted 5 lines

For your kind info, I'm a recent undergraduate working in a Product development company called MathWorks. I'm learning Linux Kernel development as a hobby. Also, I thought taking up this task would be a good starting point for Linux Kernel Development.

I doubt this is a very good first task. iirc, you'd have to work with with Jon, Daniel, Peter ... on an interface first. This is no gyrosensor where iio has a proper user interface for orientation. That means, coming up with your own, to discuss, and have example implementations ready.

Quoted 3 lines

If this task is already done, kindly suggest me a task to help me get involved with Linux community.

This mma8452 driver supports a few devices. Which one do you have? Depending on that, I may have a simpler task for you.

Quoted 5 lines

Please share your views.

Thanks,
Mani.

#2 lore raw
In reply to a message not in the archive

Hello Mani,

adding linux-iio@

Quoted 8 lines

This is Mani, working on MMA8452 Accelerometer with Beaglebone black. I just wanna know whether the TODO : 'Orientation events' task for this Accelerometer is undergoing or not. If not, can I work on the same under your mentoring.
For your kind info, I'm a recent undergraduate working in a Product development company called MathWorks. I'm learning Linux Kernel development as a hobby. Also, I thought taking up this task would be a good starting point for Linux Kernel Development.

not sure if someone is working on it, I have not seen patches

Quoted 2 lines

If this task is already done, kindly suggest me a task to help me get involved with Linux community.

you have probably chosen a quite involved task; it is not immediately clear how to realize orientation detection (at least to me :)

regards, p.

Signature · 2 lines
Peter Meerwald-Stadler
+43-664-2444418 (mobile)
maintainer
#3 lore raw
Quoted 13 lines · Peter Meerwald-Stadler

Hello Mani,

adding linux-iio@

Quoted 8 lines

This is Mani, working on MMA8452 Accelerometer with Beaglebone black. I just wanna know whether the TODO : 'Orientation events' task for this Accelerometer is undergoing or not. If not, can I work on the same under your mentoring.
For your kind info, I'm a recent undergraduate working in a Product development company called MathWorks. I'm learning Linux Kernel development as a hobby. Also, I thought taking up this task would be a good starting point for Linux Kernel Development.

Quoted 7 lines

not sure if someone is working on it, I have not seen patches

Quoted 2 lines

If this task is already done, kindly suggest me a task to help me get involved with Linux community.

you have probably chosen a quite involved task; it is not immediately clear how to realize orientation detection (at least to me :)

We could do it in a number of different ways.

One option to think about would be to do it in a 'clasification sense' similar to we do for human activity detection. There we assign a percentage likelihood (scaling is a bit arbitrary) to the various possible states. Might fit well for orientation detection as it's not really a binary thing.

If we treat it as more of a threshold with hysteresis then a more conventional 'event' might fit. For this device it's actually nicely defined in the docs for once. Could be done
as an event on each of the angle axis with hysteresis. Now the angl type is rather poorly documented right now and there is no way of knowing what frame of reference it is measured in so there are some loose ends to tie up in that case as well.

As Peter and Martin have said. Non obvious!

So if you want to do this have a good think about possible interfaces and propose one for review (perhaps with code implementing it).

Jonathan

Quoted 3 lines

regards, p.