You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the drone is flying in MANUAL / ALTCTL / POSCTL / ACRO (and probably more?) mode and receives a MAV_CMD_NAV_TAKEOFF message (to set mode to TAKEOFF), it flies towards (x, y, z) = (1, 1, 0) direction.
To Reproduce
Steps to reproduce the behavior:
[terminal 1] make px4_sitl_rtps gazebo -j4
[terminal 2] Download and run the PoC
Expected behavior
As described in the documentation, the drone should get to the target altitude and hold. No movement in the X and Y direction is expected.
hello , do you use ros2 to send MAV_CMD_NAV_TAKEOFF message?
I used ros2 to send MAV_CMD_NAV_TAKEOFF message to px4 , it can be set to takeoff mode, but it can't takeoff.
I found the documentation you described above, takeoff need some params, however I did't find any ways to set takeoff params?
Can you share your ways that control the vehicle to takeoff ? thanks in advance
Hi @xiaobai-cai-hold.
As shown in the PoC above, I used MAVLink (through pymavlink APIs), not ros2, for setting takeoff mode.
I thought with ROS2 and rtps bridge, we can only use the offboard mode.. anyways, it seems that you should create a separate issue for your question.
Hi @xiaobai-cai-hold. As shown in the PoC above, I used MAVLink (through pymavlink APIs), not ros2, for setting takeoff mode. I thought with ROS2 and rtps bridge, we can only use the offboard mode.. anyways, it seems that you should create a separate issue for your question.
thanks for your replying, I find that ros2 can only set uav to offboard mode to fly. About flying params,the offical said that they will make a param file. I believe that if that finish, using ros2 to control the uav is easy.
Describe the bug
When the drone is flying in MANUAL / ALTCTL / POSCTL / ACRO (and probably more?) mode and receives a MAV_CMD_NAV_TAKEOFF message (to set mode to TAKEOFF), it flies towards (x, y, z) = (1, 1, 0) direction.
To Reproduce
Steps to reproduce the behavior:
[terminal 1] make px4_sitl_rtps gazebo -j4
[terminal 2] Download and run the PoC
Expected behavior
As described in the documentation, the drone should get to the target altitude and hold. No movement in the X and Y direction is expected.
Log Files and Screenshots
Drone (please complete the following information):
px4_sitl_rtps
a2645418
The text was updated successfully, but these errors were encountered: