[Gta04-owner] Second trial with QtMoko2
H. Nikolaus Schaller
hns at goldelico.com
Thu Apr 12 14:25:14 CEST 2018
Hi Sven,
> Am 12.04.2018 um 14:19 schrieb Sven Dyroff <S.Dyroff at phytec.de>:
>
> Hello Nikolaus,
>
> fine, but this will "only" correct the swapping. It will still not correct the calibration.
>
> Whereat the comments of the affected source give a nice hint: "On my GTA04, sitting flat on the table, the raw Z acceleration value is about 256, so we divide by 256 here."
>
> So I suggest to add a further printf of the value of "accel -> z", in order that your code will provide you the needed calibration data that you can then use for "accel -> [xyz]scale" in case of having detected a GTA04A5.
It is easier than a printf: evtest /dev/input/accel reports the range [0..512] and the current values.
I have checked that and the GTA04A5 also reports roughly 256.
So I think you should test (after I have uploaded it to the server) if it is now ok for you.
BR,
Nikolaus
>
> Best regards
> Sven
>
>
>
>
>
> Von: "H. Nikolaus Schaller" <hns at goldelico.com>
> An: Sven Dyroff <S.Dyroff at phytec.de>
> Kopie: List for communicating with real GTA04 owners <gta04-owner at goldelico.com>
> Datum: 11.04.2018 19:21
> Betreff: Re: [Gta04-owner] Second trial with QtMoko2
>
>
> Hi Sven,
>
> Am 05.04.2018 um 18:05 schrieb Sven Dyroff <S.Dyroff at phytec.de <mailto:S.Dyroff at phytec.de>>:
>
> Hello Nikolaus,
>
> > I have now booted my GTA04A4 and the orientation is completely correct.
> > Hm. Maybe a subtle difference between GTA04A4 and A5? They use different accelerometer chips.
>
> something like that is what I already assumed. Would have wondered me if some scaling factors would have gone lost by just rebuilding QtMoko...
>
> I have now added a device version detection to swap the horizontal axis if we run on a GTA04A5:
>
> http://git.goldelico.com/?p=gta04-qtmoko.git;a=commit;h=04c30a3b18be8b55148427d6c63423837f6a77cc <http://git.goldelico.com/?p=gta04-qtmoko.git;a=commit;h=04c30a3b18be8b55148427d6c63423837f6a77cc>
>
> I have not yet published the new debian packages, but will do soon. So apt-get update will not
> yet find anything new.
>
> BR,
> Nikolaus
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20180412/b04dc06b/attachment.html>
More information about the Gta04-owner
mailing list