# SITL Preflight Fail: Compasses -2147483648° inconsistent

**URL:** <https://discuss.px4.io/t/sitl-preflight-fail-compasses-2147483648-inconsistent/18748>\
**Category:** PX4 Autopilot\
**Created:** [September 25, 2020, 2:58am UTC](https://discuss.px4.io/t/sitl-preflight-fail-compasses-2147483648-inconsistent/18748 "2020-09-25T02:58:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yu-ZHOU-1994](https://discuss.px4.io/user_avatar/discuss.px4.io/yu-zhou-1994/32/6799_2.png) [@Yu-ZHOU-1994](https://discuss.px4.io/u/Yu-ZHOU-1994)\
**Post date:** [September 25, 2020, 2:58am UTC](https://discuss.px4.io/t/sitl-preflight-fail-compasses-2147483648-inconsistent/18748/1 "2020-09-25T02:58:05Z")

</div>

I publish sensor message via /mavros/hil/imu\_ned, but when I slide to arm, it notices that Preflight Fail: Compasses -2147483648° inconsistent, I am confused that I just publish one magnetic, why does the situation occur?

---

<div class="post-metadata">

**Author:** ![jimdgit](https://discuss.px4.io/user_avatar/discuss.px4.io/jimdgit/32/6860_2.png) [@jimdgit](https://discuss.px4.io/u/jimdgit)\
**Post date:** [September 25, 2020, 10:31am UTC](https://discuss.px4.io/t/sitl-preflight-fail-compasses-2147483648-inconsistent/18748/2 "2020-09-25T10:31:25Z")

</div>

Possibly because it does not agree with the internal simulated compass,and is there for inconsistent.

---

<div class="post-metadata">

**Author:** ![Yu-ZHOU-1994](https://discuss.px4.io/user_avatar/discuss.px4.io/yu-zhou-1994/32/6799_2.png) [@Yu-ZHOU-1994](https://discuss.px4.io/u/Yu-ZHOU-1994)\
**Post date:** [September 25, 2020, 3:32pm UTC](https://discuss.px4.io/t/sitl-preflight-fail-compasses-2147483648-inconsistent/18748/3 "2020-09-25T15:32:23Z")

</div>

Maybe that is the reason, I built a visual magnetic sensor, and the home position is my current position. And I check the gazebo sitl, there is no information about internal simulated compass. Would you have any suggestion about check the internal simulated compass or solve the problem?

---

<div class="post-metadata">

**Author:** ![jimdgit](https://discuss.px4.io/user_avatar/discuss.px4.io/jimdgit/32/6860_2.png) [@jimdgit](https://discuss.px4.io/u/jimdgit)\
**Post date:** [September 25, 2020, 4:11pm UTC](https://discuss.px4.io/t/sitl-preflight-fail-compasses-2147483648-inconsistent/18748/4 "2020-09-25T16:11:49Z")

</div>

No not really perhaps on the gazebo github you can ask:

> **[osrf/gazebo](https://github.com/osrf/gazebo/issues)**
>
> Open source robotics simulator. Contribute to osrf/gazebo development by creating an account on GitHub.
