[Gta04-owner] Making sense of the sensors.
ben_deering at swissmail.org
Sat Aug 11 00:23:54 CEST 2012
On 08/10/2012 06:01 PM, Denis 'GNUtoo' Carikli wrote:
> On Wed, 2012-08-08 at 20:12 -0400, Benjamin Deering wrote:
>> I played a bit with valacompass on GTA04. Libsensmon would need a
>> BMA150 module for tilt compensation to work, but I commented out the
>> accelerometer code in my build.
>> The hmc5843 driver for the latest SHR kernel has the sysfs files in a
>> different place.
>> I changed .Sensmon/config to include:
>> The sysfs file 'rate' seems to have changed to sampling_frequency.
>> X,Y,and Z values come from separate files. I'm not a vala programmer,
>> but I can send what I did to get them.
>> I had to adjust in_magn_range to get the Y axis to show anything but -4096.0
> Hi, can you share the patches so I could try because I read your mail,
> then I was told how to activate the sensors and I started to do the same
> thing and forgot that you had the GUI working.
> (I didn't sleep well last night and it's late right now...)
> Altough I've documented the 3.4 kernel interface here:
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
I've attached my changes to libsensmon. The only change I made to
sensmon was the default device path which is unused if .Sensmon/config
is populated. My valacompass changes are a mess and really it should be
revisited after a GTA04 accelerometer is supported by libsensmon.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3765 bytes
Desc: not available
More information about the Gta04-owner