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

Preflight check failed #19

Open
TKPhuong opened this issue Dec 25, 2024 · 1 comment
Open

Preflight check failed #19

TKPhuong opened this issue Dec 25, 2024 · 1 comment

Comments

@TKPhuong
Copy link

image
I have followed each step of the installation (manual installation guide not the docker one) but still fail to fly the drone due to below preflight check fails. Everything else including gazebo simulation and the camera stream run without any problem.

WARN  [health_and_arming_checks] Preflight Fail: Compass Sensor 0 missing
WARN  [health_and_arming_checks] Preflight Fail: No connection to the ground control station

which caused preflight check failed , therefore when send arm command it got denied as below
WARN [commander] Arming denied: Resolve system health failures first

I have tried docker installation and it worked, but because I want to change the world model to my custom world sdf and dont know how to do it in docker environment .
Does anyone encounter the same problem when install locally ?

@monemati
Copy link
Owner

@TKPhuong Hi, I'm not sure why are getting these warnings, but you can try to use below params in PX4 SITL just to see if you can arm and fly the drone. (do not use these kind of commands in real life flight!)

param set COMPASS_ENABLE 0
param set ARMING_CHECK 0

And about the docker part: You can copy your default.sdf from your host machine into docker by using docker cp command in a new terminal: (change the address and container name based on your machine)

# Command template: docker cp HOST_ADDRESS CONTAINER_NAME:DOCKER_ADDRESS
docker cp ~/Desktop/default.sdf px4_ros2_gazebo_yolov8_container:/root/PX4-Autopilot/Tools/simulation/gz/worlds/default.sdf

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

No branches or pull requests

2 participants