<font size=2 face="sans-serif">Hello Nikolaus,</font>
<br>
<br><font size=2 face="sans-serif">it would astonish me if you're right,
but of course I'll then test it again in order to give you a chance to
astonish me... :-))</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">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">12.04.2018 14:25</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><font size=1 color=#5f5f5f face="sans-serif">Gesendet von:
</font><font size=1 face="sans-serif">"Gta04-owner"
<gta04-owner-bounces@goldelico.com></font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi Sven,</font>
<br>
<br><font size=3>Am 12.04.2018 um 14:19 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>
<br>
</font><font size=2 face="sans-serif"><br>
fine, but this will "only" correct the swapping. It will still
not correct the calibration.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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><font size=3> </font>
<br>
<br><font size=3>It is easier than a printf: evtest /dev/input/accel reports
the range [0..512] and the current values.</font>
<br>
<br><font size=3>I have checked that and the GTA04A5 also reports roughly
256.</font>
<br>
<br><font size=3>So I think you should test (after I have uploaded it to
the server) if it is now ok for you.</font>
<br>
<br><font size=3>BR,</font>
<br><font size=3>Nikolaus</font>
<br>
<br><font size=2 face="sans-serif"><br>
Best regards</font><font size=3> </font><font size=2 face="sans-serif"><br>
Sven</font><font size=3> </font><font size=2 face="sans-serif"><br>
</font><font size=3><br>
<br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Von: </font><font size=1 face="sans-serif">"H.
Nikolaus Schaller" <</font><a href=mailto:hns@goldelico.com><font size=1 color=blue face="sans-serif"><u>hns@goldelico.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
An: </font><font size=1 face="sans-serif">Sven
Dyroff <</font><a href=mailto:S.Dyroff@phytec.de><font size=1 color=blue face="sans-serif"><u>S.Dyroff@phytec.de</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Kopie: </font><font size=1 face="sans-serif">List
for communicating with real GTA04 owners <</font><a href="mailto:gta04-owner@goldelico.com"><font size=1 color=blue face="sans-serif"><u>gta04-owner@goldelico.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Datum: </font><font size=1 face="sans-serif">11.04.2018
19:21</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Betreff: </font><font size=1 face="sans-serif">Re:
[Gta04-owner] Second trial with QtMoko2</font><font size=3> <br>
</font>
<hr noshade><font size=3><br>
<br>
Hi Sven, <br>
<br>
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>>:
<br>
</font><font size=2 face="sans-serif"><br>
Hello Nikolaus,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
> I have now booted my GTA04A4 and the orientation is completely correct.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
> Hm. Maybe a subtle difference between GTA04A4 and A5? They use different
accelerometer chips.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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>
<br>
<br>
I have now added a device version detection to swap the horizontal axis
if we run on a GTA04A5: <br>
</font><font size=3 color=blue><u><br>
</u></font><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><font size=3>
<br>
<br>
I have not yet published the new debian packages, but will do soon. So
apt-get update will not <br>
yet find anything new. <br>
<br>
BR, <br>
Nikolaus <br>
_______________________________________________<br>
Gta04-owner mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Gta04-owner@goldelico.com"><font size=3 color=blue><u>Gta04-owner@goldelico.com</u></font></a><font size=3><br>
</font><a href="http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner"><font size=3>http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner</font></a>
<br><tt><font size=2>_______________________________________________<br>
Gta04-owner mailing list<br>
Gta04-owner@goldelico.com<br>
</font></tt><a href="http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner"><tt><font size=2>http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner</font></tt></a><tt><font size=2><br>
</font></tt>
<br>