Skip to content

Sending MAV_CMD_NAV_TAKEOFF while flying in other flight modes pushes the drone towards vec = (1, 1, 0) #19268

@squizz617

Description

@squizz617

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):

  • Build: px4_sitl_rtps
  • tested commit: a2645418

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions