633138_en-US

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

633138_en-US

633138_en-US

Compass FXOS8700 software for angle calculation

Hi,

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

Thanks,
AccelerometersMagnetic SensorsRe: Compass FXOS8700 software for angle calculation

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 

Re: Compass FXOS8700 software for angle calculation

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

Tags (1)
No ratings
Version history
Last update:
‎02-04-2026 04:42 AM
Updated by: