Compass FXOS8700 software for angle calculation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Compass FXOS8700 software for angle calculation

2,545 次查看
anilkumarraj200
Contributor I

Hi,

Please share the I need firmware driver code for Compass FXOS8700.

Thanks,
标签 (2)
0 项奖励
回复
2 回复数

1,681 次查看
anilkumarraj200
Contributor I

Hi,

I am getting the below accelerometer & magnetometer data from FXOS sensor. 

I would like to calculate Pitch, Roll, Yaw or heading (compass like in mobile North heading) 

And in my board sensor direction x & Y is different orientation, in software can it be tune and apply any error factor in software logic.

Please help me how to calculate the above values:

Regards 

0 项奖励
回复

1,681 次查看
david_diaz
NXP Employee
NXP Employee

Hello,

Thank you for writing.

The tilt-compensated eCompass algorithm, from the NXP Sensor Fusion Libraries, actually calculates all three angles (pitch, roll, and yaw or compass heading) that define the PCB orientation.

So, in this case I recommend to download the libraries mentioned in order to get the source code and to review the application note below in order to get more detailed more information:

Implementing a Tilt-Compensated eCompass using Accelerometer and Magnetometer Sensors

 

I hope this information helps.

Please let me know if you have any further question.

 

Regards,

David

0 项奖励
回复