<font size=2 face="sans-serif">Hello Nikolaus,</font>
<br>
<br><font size=2 face="sans-serif">fine, but this will "only"
correct the swapping. It will still not correct the calibration.</font>
<br>
<br><font size=2 face="sans-serif">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."</font>
<br>
<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">Best regards</font>
<br><font size=2 face="sans-serif"> Sven</font>
<br><font size=2 face="sans-serif"> </font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:
</font><font size=1 face="sans-serif">"H. Nikolaus Schaller"
<hns@goldelico.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:
</font><font size=1 face="sans-serif">Sven Dyroff <S.Dyroff@phytec.de></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Kopie:
</font><font size=1 face="sans-serif">List for communicating
with real GTA04 owners <gta04-owner@goldelico.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:
</font><font size=1 face="sans-serif">11.04.2018 19:21</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">Re: [Gta04-owner]
Second trial with QtMoko2</font>
<br>
<hr noshade>
<br>
<br><font size=3>Hi Sven,</font>
<br>
<br><font size=3>Am 05.04.2018 um 18:05 schrieb Sven Dyroff <</font><a href=mailto:S.Dyroff@phytec.de><font size=3 color=blue><u>S.Dyroff@phytec.de</u></font></a><font size=3>>:</font>
<br>
<br><font size=2 face="sans-serif">Hello Nikolaus,</font><font size=3>
</font>
<br>
<br><font size=2 face="sans-serif">> I have now booted my GTA04A4 and
the orientation is completely correct.</font><font size=3> </font>
<br><font size=2 face="sans-serif">> Hm. Maybe a subtle difference between
GTA04A4 and A5? They use different accelerometer chips.</font><font size=3>
</font>
<br>
<br><font size=2 face="sans-serif">something like that is what I already
assumed. Would have wondered me if some scaling factors would have gone
lost by just rebuilding QtMoko...</font><font size=3> </font>
<br>
<br><font size=3>I have now added a device version detection to swap the
horizontal axis if we run on a GTA04A5:</font>
<br>
<br><a href="http://git.goldelico.com/?p=gta04-qtmoko.git;a=commit;h=04c30a3b18be8b55148427d6c63423837f6a77cc"><font size=3 color=blue><u>http://git.goldelico.com/?p=gta04-qtmoko.git;a=commit;h=04c30a3b18be8b55148427d6c63423837f6a77cc</u></font></a>
<br>
<br><font size=3>I have not yet published the new debian packages, but
will do soon. So apt-get update will not</font>
<br><font size=3>yet find anything new.</font>
<br>
<br><font size=3>BR,</font>
<br><font size=3>Nikolaus</font>
<br>