> Am 12.04.2018 um 14:19 schrieb Sven Dyroff <s.dyr...@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.
> Best regards
> Von: "H. Nikolaus Schaller" <h...@goldelico.com>
> An: Sven Dyroff <s.dyr...@phytec.de>
> Kopie: List for communicating with real GTA04 owners
> 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.dyr...@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:
> I have not yet published the new debian packages, but will do soon. So
> apt-get update will not
> yet find anything new.
> Gta04-owner mailing list
Gta04-owner mailing list