Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Preflight Fail: Strong magnetic interference #24190

Open
chakloong883 opened this issue Jan 9, 2025 · 0 comments
Open

[Bug] Preflight Fail: Strong magnetic interference #24190

chakloong883 opened this issue Jan 9, 2025 · 0 comments

Comments

@chakloong883
Copy link

chakloong883 commented Jan 9, 2025

Describe the bug

When I execute roslaunch px4 posix_sitl.launch, the following warning appears:

WARN  [health_and_arming_checks] Preflight Fail: Strong magnetic interference

What are the possible solutions? Below is the complete log:

zelong@kemove-System-Product-Name:~/workspace/simulation/PX4-Autopilot$ roslaunch px4 posix_sitl.launch
... logging to /home/zelong/.ros/log/e46deedc-ce6d-11ef-962d-3b6c70f65b86/roslaunch-kemove-System-Product-Name-78468.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://kemove-System-Product-Name:42257/

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /rosdistro: noetic
 * /rosversion: 1.17.0
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    sitl (px4/px4)
    vehicle_spawn_kemove_System_Product_Name_78468_2572557572083514136 (gazebo_ros/spawn_model)

auto-starting new master
process[master]: started with pid [78507]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to e46deedc-ce6d-11ef-962d-3b6c70f65b86
process[rosout-1]: started with pid [78548]
started core service [/rosout]
process[sitl-2]: started with pid [78555]
process[gazebo-3]: started with pid [78565]

______  __   __    ___
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
process[gazebo_gui-4]: started with pid [78573]
INFO  [init] found model autostart file as SYS_AUTOSTART=10015
INFO  [param] selected parameter default file parameters.bson
INFO  [param] importing from 'parameters.bson'
INFO  [parameters] BSON document size 662 bytes, decoded 662 bytes (INT32:20, FLOAT:12)
process[vehicle_spawn_kemove_System_Product_Name_78468_2572557572083514136-5]: started with pid [78585]
INFO  [param] selected parameter backup file parameters_backup.bson
INFO  [dataman] data manager file './dataman' size is 7872608 bytes
INFO  [init] PX4_SIM_HOSTNAME: localhost
INFO  [simulator_mavlink] Waiting for simulator to accept connection on TCP port 4560
[ INFO] [1736415685.731374097]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1736415685.732004975]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[INFO] [1736415685.733088, 0.000000]: Loading model XML from file /home/zelong/workspace/simulation/PX4-Autopilot/Tools/simulation/gazebo-classic/si
tl_gazebo-classic/models/iris/iris.sdf
[INFO] [1736415685.734474, 0.000000]: Waiting for service /gazebo/spawn_sdf_model
[ INFO] [1736415685.761327478]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1736415686.157863883, 0.016000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1736415686.166471055, 0.024000000]: Physics dynamic reconfigure ready.
[INFO] [1736415686.338027, 0.196000]: Calling service /gazebo/spawn_sdf_model
Warning [parser.cc:833] XML Attribute[version] in element[sdf] not defined in SDF, ignoring.
[INFO] [1736415686.586007, 0.380000]: Spawn status: SpawnModel: Successfully spawned entity
INFO  [simulator_mavlink] Simulator connected on TCP port 4560.
INFO  [lockstep_scheduler] setting initial absolute time to 392000 us
INFO  [commander] LED: open /dev/led0 failed (22)
INFO  [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
INFO  [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550
INFO  [mavlink] partner IP: 127.0.0.1
INFO  [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO  [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030
INFO  [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280
INFO  [logger] logger started (mode=all)
INFO  [logger] Start file log (type: full)
INFO  [logger] [logger] ./log/2025-01-09/09_41_26.ulg
INFO  [mavlink] MAVLink only on localhost (set param MAV_{i}_BROADCAST = 1 to enable network)
INFO  [mavlink] MAVLink only on localhost (set param MAV_{i}_BROADCAST = 1 to enable network)
INFO  [logger] Opened full log file: ./log/2025-01-09/09_41_26.ulg
INFO  [px4] Startup script returned successfully
pxh> INFO  [tone_alarm] home set
[vehicle_spawn_kemove_System_Product_Name_78468_2572557572083514136-5] process has finished cleanly
log file: /home/zelong/.ros/log/e46deedc-ce6d-11ef-962d-3b6c70f65b86/vehicle_spawn_kemove_System_Product_Name_78468_2572557572083514136-5*.log
WARN  [health_and_arming_checks] Preflight Fail: Strong magnetic interference
WARN  [health_and_arming_checks] Preflight Fail: Strong magnetic interference


To Reproduce

roslaunch px4 posix_sitl.launch 

Software Version

px4 : the latest
OS : Ubuntu Noetic
gazebo: 11.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant