FXOS8700+Mediatek(6260) Feature phones as for e-compass

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXOS8700+Mediatek(6260) Feature phones as for e-compass

1,058 Views
tielee
Contributor I

Hi Freescale:

    My Source Code from E-Compass Software|Freescale   The Source has been ported to my platform.

 

The Device Is Working, The Sampling data through algorithm abnormal results.

 

Part of the data as follows:(The board has not been moved or rotated)

 

Data A:

thisSV_6DOF_GB_BASIC.fLPPhi = 1119092736.000000

thisSV_6DOF_GB_BASIC.fLPThe = 1111298816.000000

thisSV_6DOF_GB_BASIC.fLPPsi = -1035806144.000000

thisSV_6DOF_GB_BASIC.fLPRho = -1035806144.000000

Data B:

 

thisSV_6DOF_GB_BASIC.fLPPhi = 1119092736.000000

 

thisSV_6DOF_GB_BASIC.fLPThe = -1036172544.000000

thisSV_6DOF_GB_BASIC.fLPPsi = -1569141248.000000

thisSV_6DOF_GB_BASIC.fLPRho = -1569141248.000000

Data C:

 

thisSV_6DOF_GB_BASIC.fLPPhi = 1119092736.000000

 

thisSV_6DOF_GB_BASIC.fLPThe = 0.000000

thisSV_6DOF_GB_BASIC.fLPPsi = -2147483264.000000

thisSV_6DOF_GB_BASIC.fLPRho = -2147483264.000000


The above data is correct?

Labels (1)
Tags (1)
0 Kudos
1 Reply

572 Views
michaelestanley
NXP Employee
NXP Employee

Jason,

I can't tell if values are correct or not.  But more importantly, I would NOT expect them to be correct if you haven't moved the board.  Sensor fusion algorithms need data from moving sensors in order to compute orientation.  Without that dynamic data, I can pretty much gaurantee you'll get garbage.

The absolute best way (in my opinion) to validate your results is to communicate to either Windows or Android version of the Sensor Fusion Toolbox, and use the visualization tool in the toolbox to see if the board image tracks movements.  Since you have your own hardware, the board photo will not match, but the movements should.

If they do not, the most likely culprit would be your hardware abstraction layer.  This thin layer of the software is responsible for ensuring that all sensors are mathematically aligned, even if they are not physically aligned.

Try the toolbox.  If you are still having trouble, send us a video showing your board and screen (simultaneously).  We'll see what that shows.

Regards,

Mike

0 Kudos