Px4-autopilot: SITL: Preflight Fail : Compass #0 uncalibrated

Created on 12 Jul 2019  路  3Comments  路  Source: PX4/PX4-Autopilot

My px4 sitl with jmavsim and gazebo was all ok to use, and today I update source code to newest commit and then make again (sudo make px4_sitl_default jmavsim & sudo make px4_sitl gazebo).
After make the two sitls platforms prompts "SITL: Preflight Fail : Compass #0 uncalibrated " and cannot takeoff...
Is this problem normal with SITL? How to calibrate compass with QGC ( since I found it impossible to rotate the vehicle in SITL environment... )?

Thanks!

Most helpful comment

For future reference: I had the same issue, and make clean (or make distclean) did not help, but deleting ~/.ros/eeprom/parameters worked as mentioned here. (Then you have to set up your PX4 parameters again, of course.)

All 3 comments

Can you try a make clean first?
The SITL sensor ID's changed at some point.

@bkueng Yeah It worked! Thank you very much!

For future reference: I had the same issue, and make clean (or make distclean) did not help, but deleting ~/.ros/eeprom/parameters worked as mentioned here. (Then you have to set up your PX4 parameters again, of course.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stifael picture Stifael  路  3Comments

dk7xe picture dk7xe  路  3Comments

ghost picture ghost  路  4Comments

mwiatt picture mwiatt  路  5Comments

julianoes picture julianoes  路  3Comments