I am using a Pixhawk 4 FMUv5, and I am flying a Multi-Copter under Offboard flight mode with geometric controller. The firmware version is 1.11.1.
During Offboard mode, the Multi-Copter works fine. But when the Multi-Copter switch from Offboard mode to Land Mode, the Multi-Copter rotates around the z axis unexpectedly (for about 90 degrees), and then quickly rotate back to yaw = 0.
Here I attached my flight log. The multi-copter switches to the Land mode with the mavros_msgs::SetMode
service. Here I set the mode
keyword in SetMode
variable to “AUTO.LAND”.
By the way, I used the /mavros/setpoint_raw/attitude
as command input during the Offboard, and didn’t turn it of when switching to Land Mode.
Any ideas how I can fix this yaw rotation issue?
Here are my Flight logs. (Just the Yaw and Yaw Rate Records)
I meet this problem too, did you find some way to slove it?
Hello, similar problem here. Were you able to fix the issue?
Hi, would you be able to post a link to the whole flight log itself?
Thanks
I saw similar issue. The drone tried to land facing to the east. Don’t know why compass is used to tell the drone which direction is the east even when flying indoor. Have you got the problem resolved?
Hi, I am having the same problem. Have you already found a solution?
I see multiple people with this problem, but haven’t seen someone give a solution yet.
After some testing I found that the issue seems to be that a delta_heading message is sent when switching to land mode. Delta_heading seems to be the yaw offset of the drone at the start position with respect to North. I didn’t find the reason for the delta_heading or how to disable it yet.
I had the same problem, flying indoors, the flight was fine, when switching to landing mode, it would yaw to an easterly heading, then turn back to the heading it was on before landing before continuing. Has anyone solved this problem? Help me!
@z1047941150 @droneGuy @shawn_ricardo @Jeroen_Zwanepol
I solved it by adding SetMode to “PosCTL” between offboard mode and landing mode. Change old pipeline (yaw rotate when landing): Offboard mode → AutoLanding mode to new pipeline: Offboard mode → position mode (hold several secs) → AutoLanding mode.