Open sthalik opened 9 years ago
If indeed works better it can also be made into xposed module. Infinite Flight works like shit.
I just gave a quick read so i might missed something but it looks like its rotation only not translation?
of course but right now rotation works almost worthlessly
for gyro lackage that is
Aha, pose estimation sounded like you wanted to get x y z translation as well. The C# code should be easy to port to Java.
I get a lot of drift, could be the gyro, wonder if this also could help people with gyro devices
Magnets nearby?
We COULD do translation support but with large-ish spring effect.
See https://github.com/sthalik/FreePIE/compare/master...sthalik:freescale-estimator
It works up to the point that there's no singularity when poles align exactly. Very noisy. I should filter accelerometer readings prior to estimation or something.
Note, the branch's new code only works on phones with no gyro.
Its going to be interesting to see if you can make it better than the Google team :)
it already performs better with regard to the amount of singularities. Google code stops processing one or two degrees of freedom on certain positions. this one mostly stops when there's no possible solution.
accuracy still sucks though. requires way more filtering than bearable. I'll look into filter gain more but it's nowhere near a gyro-equipped phone.
@AndersMalmgren care to give it a go? https://github.com/sthalik/FreePIE/commits/freescale-estimator
It's not rebased yet hence not ready for a pull request, but functionality is done.
Sorry, i have not had the time to test this. Will try to find sometime this week.
I found this - http://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf and it might be superior to Android framework code for pose estimation without a gyro.
I'm dropping it here not to forget to implement it sometime soon.