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!
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.)
Most helpful comment
For future reference: I had the same issue, and
make clean(ormake distclean) did not help, but deleting~/.ros/eeprom/parametersworked as mentioned here. (Then you have to set up your PX4 parameters again, of course.)