<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Sven,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 12.04.2018 um 14:19 schrieb Sven Dyroff <<a href="mailto:S.Dyroff@phytec.de" class="">S.Dyroff@phytec.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><font size="2" face="sans-serif" class="">Hello Nikolaus,</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">fine, but this will "only"
correct the swapping. It will still not correct the calibration.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">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 class="">
<br class=""><font size="2" face="sans-serif" class="">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 class=""></div></blockquote><div><br class=""></div><div>It is easier than a printf: evtest /dev/input/accel reports the range [0..512] and the current values.</div><div><br class=""></div>I have checked that and the GTA04A5 also reports roughly 256.</div><div><br class=""></div><div>So I think you should test (after I have uploaded it to the server) if it is now ok for you.</div><div><br class=""></div><div>BR,</div><div>Nikolaus</div><div><br class=""></div><div><blockquote type="cite" class=""><div class="">
<br class=""><font size="2" face="sans-serif" class="">Best regards</font>
<br class=""><font size="2" face="sans-serif" class=""> Sven</font>
<br class=""><font size="2" face="sans-serif" class=""> </font>
<br class="">
<br class="">
<br class="">
<br class="">
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Von:
</font><font size="1" face="sans-serif" class="">"H. Nikolaus Schaller"
<<a href="mailto:hns@goldelico.com" class="">hns@goldelico.com</a>></font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">An:
</font><font size="1" face="sans-serif" class="">Sven Dyroff <<a href="mailto:S.Dyroff@phytec.de" class="">S.Dyroff@phytec.de</a>></font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Kopie:
</font><font size="1" face="sans-serif" class="">List for communicating
with real GTA04 owners <<a href="mailto:gta04-owner@goldelico.com" class="">gta04-owner@goldelico.com</a>></font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Datum:
</font><font size="1" face="sans-serif" class="">11.04.2018 19:21</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Betreff:
</font><font size="1" face="sans-serif" class="">Re: [Gta04-owner]
Second trial with QtMoko2</font>
<br class="">
<hr noshade="" class="">
<br class="">
<br class=""><font size="3" class="">Hi Sven,</font>
<br class="">
<br class=""><font size="3" class="">Am 05.04.2018 um 18:05 schrieb Sven Dyroff <</font><a href="mailto:S.Dyroff@phytec.de" class=""><font size="3" color="blue" class=""><u class="">S.Dyroff@phytec.de</u></font></a><font size="3" class="">>:</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">Hello Nikolaus,</font><font size="3" class="">
</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">> I have now booted my GTA04A4 and
the orientation is completely correct.</font><font size="3" class=""> </font>
<br class=""><font size="2" face="sans-serif" class="">> Hm. Maybe a subtle difference between
GTA04A4 and A5? They use different accelerometer chips.</font><font size="3" class="">
</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">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" class=""> </font>
<br class="">
<br class=""><font size="3" class="">I have now added a device version detection to swap the
horizontal axis if we run on a GTA04A5:</font>
<br class="">
<br class=""><a href="http://git.goldelico.com/?p=gta04-qtmoko.git;a=commit;h=04c30a3b18be8b55148427d6c63423837f6a77cc" class=""><font size="3" color="blue" class=""><u class="">http://git.goldelico.com/?p=gta04-qtmoko.git;a=commit;h=04c30a3b18be8b55148427d6c63423837f6a77cc</u></font></a>
<br class="">
<br class=""><font size="3" class="">I have not yet published the new debian packages, but
will do soon. So apt-get update will not</font>
<br class=""><font size="3" class="">yet find anything new.</font>
<br class="">
<br class=""><font size="3" class="">BR,</font>
<br class=""><font size="3" class="">Nikolaus</font>
<br class="">_______________________________________________<br class="">Gta04-owner mailing list<br class=""><a href="mailto:Gta04-owner@goldelico.com" class="">Gta04-owner@goldelico.com</a><br class="">http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner<br class=""></div></blockquote></div><br class=""></div></body></html>