-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Drone do not take off in offboard control example #20667
Comments
I had the same issue regarding the
Then, enable |
@biagio-trimarchi You need to switch the vehicle into offboard mode |
I was able to run the example only after executing the command:
|
@biagio-trimarchi Not really, that is not the default behavior - It is not safe to automatically enable offboard if you are testing on a real platform. Especially given that ros2 you are publishing internal uorb messages directly. |
Thanks for the explanation. :) |
I had the same issue and was able to resolve thanks to this thread. Could I know what the QGC virtual joystick option does for the PX4 internally? Does it configure any parameters of any module in PX4 via mavlink or so? If not, is the gazebo somehow directly talking to QGC? I checked that if I don't turn on QGC, it does not hover. For debugging purposes (no battery and PWM wires are connected), if I force to turn off this safety feature, which part should I look into? Thanks in advance. I found that COM_RCL_EXCEPT = 4 would do it wihtout QGC. Yet, it's still murky how QGC's virtual joystick does it. |
Describe the bug
I am following the "ROS 2 Offboard Control Example" in the documentation: https://docs.px4.io/main/en/ros/ros2_offboard_control.html
The simulated drone arms the motor but does not take off as expected.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
I would expect the drone to take off.
Screenshot
The text was updated successfully, but these errors were encountered: