maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Accelerometers (https://talk.maemo.org/showthread.php?t=29091)

VDVsx 2009-05-21 14:03

Re: Accelerometers
 
Quote:

Originally Posted by lardman (Post 289019)
I was assuming the sysfs entry code would also be present. I can't look myself atm as I'm running on WinXP (can't apply the diff easily), but will have a look through later on.

Yeah, is there. Didn't looked for it :D. thanks !!!

qgil 2009-05-21 14:04

Re: Accelerometers
 
Quote:

Originally Posted by VDVsx (Post 289018)
In a Fremantle prototype device right ?

In a development unit used to test Fremantle. Shaking my laptop with the Maemo 5 SDK installed won't work. ;)

lardman 2009-05-21 14:06

Re: Accelerometers
 
So the answer is yes, you can alter the rate from the looks of it. See lis302dl_set_rate() and likewise the scaling with lis302dl_set_scale()

VDVsx 2009-05-21 14:07

Re: Accelerometers
 
Quote:

Originally Posted by lardman (Post 289022)
Ah no worries, just looked in the patch. Take a look at the following file: /drivers/i2c/chips/lis302dl.c

Humm, don't have that file, should have a different kernel, where did you grab yours ?

VDVsx 2009-05-21 14:09

Re: Accelerometers
 
Quote:

Originally Posted by qgil (Post 289025)
In a development unit used to test Fremantle. Shaking my laptop with the Maemo 5 SDK installed won't work. ;)

Ehehe, so we can't test it :)

lardman 2009-05-21 14:09

Re: Accelerometers
 
I just grabbed the patch from the repo: http://repository.maemo.org/pool/fre...02+0m5.diff.gz

qgil 2009-05-21 14:12

Re: Accelerometers
 
Quote:

Originally Posted by VDVsx (Post 289029)
Ehehe, so we can't test it :)

I can give feedback if anybody tries and uploads the packages to extras-devel.

VDVsx 2009-05-21 14:19

Re: Accelerometers
 
Quote:

Originally Posted by lardman (Post 289026)
So the answer is yes, you can alter the rate from the looks of it. See lis302dl_set_rate() and likewise the scaling with lis302dl_set_scale()

Ah, almost everything is configurable, nice work.
I'm happy now :D

Master of Gizmo 2009-06-05 11:20

Re: Accelerometers
 
Quote:

Originally Posted by qgil (Post 289025)
In a development unit used to test Fremantle. Shaking my laptop with the Maemo 5 SDK installed won't work. ;)

That's actually not as a strange idea as it seems. The tiltstick e.g. just works inside the sdk and so would any other usb peripheral connected via usb and accessed via libusb.

lcuk 2009-06-05 11:58

Re: Accelerometers
 
Quote:

Originally Posted by Master of Gizmo (Post 293969)
That's actually not as a strange idea as it seems. The tiltstick e.g. just works inside the sdk and so would any other usb peripheral connected via usb and accessed via libusb.

does the tiltstick use the same format and sysfs entries as the built in commands?

if not, it would be nice if there was perhaps a small redirection app which could allow people to test using as you say a tiltstick, or using a bluetooth connected wiimote.

Perhaps the library version does this already and will accept input from any accel unit, maybe someone else will know.


All times are GMT. The time now is 13:33.

vBulletin® Version 3.8.8