[Gta04-owner] Second trial with QtMoko2
Sven Dyroff
S.Dyroff at phytec.de
Thu Apr 12 14:19:59 CEST 2018
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.
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>:
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20180412/be00c7a2/attachment.html>
More information about the Gta04-owner
mailing list