# HMC5883L Magnetometer publish

**URL:** <https://forum.zubax.com/t/hmc5883l-magnetometer-publish/1557>\
**Category:** Cyphal & DroneCAN\
**Created:** [March 4, 2020, 5:46am UTC](https://forum.zubax.com/t/hmc5883l-magnetometer-publish/1557 "2020-03-04T05:46:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lohits7](https://forum.zubax.com/letter_avatar_proxy/v4/letter/l/dbc845/32.png) [@lohits7](https://forum.zubax.com/u/lohits7)\
**Post date:** [March 4, 2020, 5:46am UTC](https://forum.zubax.com/t/hmc5883l-magnetometer-publish/1557/1 "2020-03-04T05:46:27Z")

</div>

Hello.  
I am working on libcanard using HMC5883L and stm32f103 bluepill board following babel tutorial. My doubt is regards Calibration on mag sensor. Should i do calibration inside my code and publish the calibrated mag field strength ? or should i just need to send the raw value which is multiplied with sensitivity? I am running HMC5883L at 1.3ga where sensitivity is 1090.

Should i need to do NED correction before publishing the data?

---

<div class="post-metadata">

**Author:** ![lohits7](https://forum.zubax.com/letter_avatar_proxy/v4/letter/l/dbc845/32.png) [@lohits7](https://forum.zubax.com/u/lohits7)\
**Post date:** [March 5, 2020, 8:25am UTC](https://forum.zubax.com/t/hmc5883l-magnetometer-publish/1557/2 "2020-03-05T08:25:17Z")

</div>

Fixed the problem. working fine.
