[Gta04-owner] Second trial with QtMoko2
H. Nikolaus Schaller
hns at goldelico.com
Mon Apr 16 09:08:35 CEST 2018
Hi,
> Am 13.04.2018 um 22:42 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>
> Hi,
>
>> Am 13.04.2018 um 20:06 schrieb H. Nikolaus Schaller <hns at goldelico.com <mailto:hns at goldelico.com>>:
>>
>> Hi Sven,
>>
>>> Am 13.04.2018 um 19:29 schrieb Sven Dyroff <S.Dyroff at phytec.de <mailto:S.Dyroff at phytec.de>>:
>>>
>>> Hello Nikolaus,
>>>
>>> on my GTA04A5 it behaves exactly as expected: The ball now moves to the correct directions,
>>
>> Fine! One problem solved.
>>
>>> but slowly and stuttering.
>>
>> Bugs are like onions or matryoshka dolls :)
>>
>> Isn't that what one would expect? It starts slowly and becomes faster and faster, i.e. accelerates over time.
>>
>>> Like if you view a film with not enough pictures per second.
>>
>> Or do you mean that the ball is jumping by single pixels if you tilt the device just a little?
>> I have made a short video how it looks on my GTA04:
>>
>> http://download.goldelico.com/qtmoko2/files/MAH00877.m4v <http://download.goldelico.com/qtmoko2/files/MAH00877.m4v>
> I have uploaded it to YouTube:
>
> https://www.youtube.com/watch?v=cHk8AtigL4k <https://www.youtube.com/watch?v=cHk8AtigL4k>
>
>>
>> Does it look the same for you?
>
> Ok, here is an old Freerunner video for comparison (thanks to Raanan Elefant):
>
> https://www.youtube.com/results?search_query=jaRtQOPMBO4 <https://www.youtube.com/results?search_query=jaRtQOPMBO4>
>
> I think we either have lower accelerometer sensitivity or the frame-rate is lower.
>
> For the latter we need some expert who knows how Qt really works and
> controls the frame rate...
Here is another video. Where QtMoko2 has been rougly hacked [1] to boot and run on a Pyra:
https://youtu.be/Wx6Anhspa7I
As you can see, the graphics of QtMaze doesn't differ from the GTA04. So this is
not a matter of "horsepower" of the hardware (OMAP3 vs. OMAP5).
BR,
Nikolaus
[1]: http://git.goldelico.com/?p=gta04-qtmoko.git;a=shortlog;h=refs/heads/wheezy
>
> BR,
> Nikolaus
>
>>
>> BR,
>> Nikolaus
>>
>>>
>>> Best regards
>>> Sven
>>>
>>>
>>>
>>>
>>>
>>> Von: "H. Nikolaus Schaller" <hns at goldelico.com <mailto:hns at goldelico.com>>
>>> An: List for communicating with real GTA04 owners <gta04-owner at goldelico.com <mailto:gta04-owner at goldelico.com>>
>>> Datum: 13.04.2018 17:48
>>> Betreff: Re: [Gta04-owner] Second trial with QtMoko2
>>> Gesendet von: "Gta04-owner" <gta04-owner-bounces at goldelico.com <mailto:gta04-owner-bounces at goldelico.com>>
>>>
>>>
>>>
>>> Hi Sven,
>>>
>>> Am 12.04.2018 um 19:35 schrieb H. Nikolaus Schaller <hns at goldelico.com <mailto:hns at goldelico.com>>:
>>>
>>> Hi Sven,
>>>
>>> Am 12.04.2018 um 17:55 schrieb Sven Dyroff <S.Dyroff at phytec.de <mailto:S.Dyroff at phytec.de>>:
>>>
>>> Hello Nikolaus,
>>>
>>> have you tried if GTA04A5 now moves the ball in QtMaze as smooth, fast and natural and without stuttering as the GTA04A4?
>>>
>>> Well, I don't know what you expect for "smooth, fast and natura"l, I just found that they move almost the same now
>>> between both devices - and qtmoko2.
>>>
>>> So, finally, I have checked (and additionally fixed the z axis inversion for GTA04A5) and the files are now on the server:
>>>
>>> root at letux:~# apt-get upgrade
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> The following packages will be upgraded:
>>> qtmoko-gta04
>>> 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>> Need to get 24.2 MB of archives.
>>> After this operation, 0 B of additional disk space will be used.
>>> Do you want to continue [Y/n]? y
>>> WARNING: The following packages cannot be authenticated!
>>> qtmoko-gta04
>>> Install these packages without verification [y/N]? y
>>> Get:1 http://download.goldelico.com/letux-debian-rootfs/debian/ <http://download.goldelico.com/letux-debian-rootfs/debian/> wheezy/main qtmoko-gta04 armhf 60.20180413-1 [24.2 MB]
>>> Fetched 24.2 MB in 32s (737 kB/s)
>>> (Reading database ... 21235 files and directories currently installed.)
>>> Preparing to replace qtmoko-gta04 60.20180411-1 (using .../qtmoko-gta04_60.20180413-1_armhf.deb) ...
>>> Unpacking replacement qtmoko-gta04 ...
>>> Setting up qtmoko-gta04 (60.20180413-1) ...
>>> localepurge: Disk space freed in /usr/share/locale: 0 KiB
>>> localepurge: Disk space freed in /usr/share/man: 0 KiB
>>>
>>> Total disk space freed by localepurge: 0 KiB
>>>
>>> root at letux:~#
>>>
>>> BR,
>>> Nikolaus
>>>
>>>
>>> I don't have time to make a 2nd SD cards to boot two devices and compare them in parallel...
>>>
>>> So answering this question seems to be in better hands if you do it.
>>>
>>> BR,
>>> Nikolaus
>>>
>>>
>>>
>>> Best regards
>>> Sven
>>>
>>>
>>>
>>>
>>>
>>> Von: "H. Nikolaus Schaller" <hns at goldelico.com <mailto:hns at goldelico.com>>
>>> An: List for communicating with real GTA04 owners <gta04-owner at goldelico.com <mailto:gta04-owner at goldelico.com>>
>>> Datum: 12.04.2018 14:52
>>> Betreff: Re: [Gta04-owner] Second trial with QtMoko2
>>> Gesendet von: "Gta04-owner" <gta04-owner-bounces at goldelico.com <mailto:gta04-owner-bounces at goldelico.com>>
>>>
>>>
>>>
>>> Am 12.04.2018 um 14:32 schrieb Sven Dyroff <S.Dyroff at phytec.de <mailto:S.Dyroff at phytec.de>>:
>>>
>>> Hello Nikolaus,
>>>
>>> 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... :-))
>>>
>>> I have done this test for you:
>>>
>>> GTA04A4 and GTA04A5 with display upside on the table with the same µSD card (i.e. boot A5 first, then swap card and boot A4).
>>> Run evtest /dev/input/accel | head -20 and write down highest X/Y/Z values.
>>>
>>> On a GTA04A5:
>>>
>>> root at letux:~# evtest /dev/input/accel | head -20
>>> Input driver version is 1.0.1
>>> Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
>>> Input device name: "accelerometer-iio-input-bridge"
>>> Supported events:
>>> Event type 0 (EV_SYN)
>>> Event type 3 (EV_ABS)
>>> Event code 0 (ABS_X)
>>> Value 14
>>> Min -511
>>> Max 511
>>> Event code 1 (ABS_Y)
>>> Value -32
>>> Min -511
>>> Max 511
>>> Event code 2 (ABS_Z)
>>> Value -253
>>> Min -511
>>> Max 511
>>> Properties:
>>> Testing ... (interrupt to exit)
>>> root at letux:~#
>>>
>>> This means: X=14/256 = +5%, Y=--32/256 = -12%, Z=-253/256 = -99%
>>>
>>> On a GTA04A4:
>>>
>>> root at letux:~# evtest /dev/input/accel | head -20
>>> Input driver version is 1.0.1
>>> Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
>>> Input device name: "accelerometer-iio-input-bridge"
>>> Supported events:
>>> Event type 0 (EV_SYN)
>>> Event type 3 (EV_ABS)
>>> Event code 0 (ABS_X)
>>> Value -15
>>> Min -511
>>> Max 511
>>> Event code 1 (ABS_Y)
>>> Value -5
>>> Min -511
>>> Max 511
>>> Event code 2 (ABS_Z)
>>> Value 274
>>> Min -511
>>> Max 511
>>> Properties:
>>> Testing ... (interrupt to exit)
>>> root at letux:~#
>>>
>>> This means: X=-15/256 = +6%, Y=--5/256 = -2%, Z=274/256 = +107%
>>>
>>> Comparing A4 and A5: they basically behave *the same* regarding the range
>>> and report both +/-256 for 1g. They just differ in the orientation of the sensor.
>>>
>>> I.e. the Z axis also has a sign error. This is still missing in my correction patch.
>>> To make it really precise I should rotate both devices by 90° and write down all
>>> values...
>>>
>>> What I don't know and can't compare is if they behave like a GTA02... And
>>> if a total value of ~1g is what QtMaze expects. And if the QtMaze makes use
>>> of the Z-axis at all (doesn't look as if it does).
>>>
>>> BR,
>>> Nikolaus
>>>
>>>
>>>
>>> Best regards
>>> Sven
>>>
>>>
>>>
>>>
>>>
>>> Von: "H. Nikolaus Schaller" <hns at goldelico.com <mailto:hns at goldelico.com>>
>>> An: List for communicating with real GTA04 owners <gta04-owner at goldelico.com <mailto:gta04-owner at goldelico.com>>
>>> Datum: 12.04.2018 14:25
>>> Betreff: Re: [Gta04-owner] Second trial with QtMoko2
>>> Gesendet von: "Gta04-owner" <gta04-owner-bounces at goldelico.com <mailto:gta04-owner-bounces at goldelico.com>>
>>>
>>>
>>>
>>>
>>> Hi Sven,
>>>
>>> Am 12.04.2018 um 14:19 schrieb Sven Dyroff <S.Dyroff at phytec.de <mailto:S.Dyroff at 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.
>>>
>>> BR,
>>> Nikolaus
>>>
>>>
>>> Best regards
>>> Sven
>>>
>>>
>>>
>>>
>>>
>>> Von: "H. Nikolaus Schaller" <hns at goldelico.com <mailto:hns at goldelico.com>>
>>> An: Sven Dyroff <S.Dyroff at phytec.de <mailto:S.Dyroff at phytec.de>>
>>> Kopie: List for communicating with real GTA04 owners <gta04-owner at goldelico.com <mailto: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 <mailto: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 <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
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>>
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner <http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner>
>>
>> _______________________________________________
>> Gta04-owner mailing list
>> Gta04-owner at goldelico.com <mailto:Gta04-owner at goldelico.com>
>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
>
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20180416/4ab2e435/attachment-0001.html>
More information about the Gta04-owner
mailing list