ads

jeudi 24 septembre 2015

[BUG] GYROSCOPE's automatic recalibration is retarded



I've noticed that problem in the hox a long time ago and it didn't bother me too much till vr came...

Some people had bad luck shooting photospheres on our HOX.
Well I know the exact problem that our gyroscopes have and that is definitely a driver/software problems.
The cause is that the gyro recalibrates itself whenever it detects that a constant average signal is on for like 1 second.

So when you take a photosphere, the gyro works perfectly(as long as you do sharp movements) but as soon as you turn around in a constant rotation speed the phone thinks its a drift problem and tries to compensate for it(hence the rotation on screen stops while you rotate in real world), now when you stop rotating irl the compensation is still there so the photosphere/vr rotates to the other way when you stop and then you try to compensate for it and it just gets worse until you stop for about 2 seconds and it corrects its own drift correction(but now your photosphere is messed up since north became south/ your vr world and real world are on waaay different rotations rendering chair vr annoying)

Math:
gyro is fine, you rotate at +2deg/s for like 2 secs phone thinks its a drift and compensates -2deg/s so it stops.
now when you stop and dont rotate the gyro is off by -2degs/s untill it recalibrates again.
I have no idea who the hell programmed this, also it recalibrates the average that you spin at not a real constant value so even if you spin at 1.5 2 2.5 2 1.5 2.5 it will guess that you have drift of 2 and will compensate -2.

I attached a graph of the sensor, that shows the problem using the sensor kinetics app, with explanations of what I do that causes the corresponding changesin the graph(the blue HERE!! is the problematic bad recalibration that shouldn't happen at all)

Test done on slimLP android 5.1.1 the problem existed in all firmwares I ever tried(didn't try sensor kinetics on stock).
@teemo or any one of the super devs do you have any idea of how to change the recalibration time from 1 second to like 5 seconds? that should fix most of the gyro related problems.








Attached Thumbnails


Click image for larger version<br/><br/>Name:	GYRO PROBLEM.png<br/>Views:	N/A<br/>Size:	119.4 KB<br/>ID:	3484600
 














Aucun commentaire:

Enregistrer un commentaire