ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

PX4 offboard mode with no gps [solved] [closed]

asked 2023-07-24 16:54:04 -0500

Furki gravatar image

updated 2023-07-25 02:58:46 -0500

Hello everyone,

I am trying to simulate a quadrotor on Gazebo with offboard mode and navigate the drone with roll, pitch and yaw commands with thrust. I am publishing these commands to "/mavros/setpoint_raw/attitude" topic and when the quad has a GPS onboard, I have no problems setting the attitude.

The problem occurs when I remove the GPS from model file, throwing an error : requesting home position. I tried setting EKF2_GPS_CHECK to 0 but still had no luck.

Does anyone know how can I get the drone airborne without GPS? or is there any other way other than publishing the aforementioned topic ?

Regards, Furki

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Furki
close date 2023-07-25 02:58:34.614854

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-25 02:57:39 -0500

Furki gravatar image

Commenting out global_position and fake_gps inside /catkin_ws/src/mavros/mavros/launch/px4_config.yaml solved the problem the for me, I hope that solution will work out for anyone experiencing the same issue.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-07-24 16:54:04 -0500

Seen: 490 times

Last updated: Jul 25 '23