Skip to content
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

Yaw during takeoff #13675

Closed
julianoes opened this issue Dec 4, 2019 · 7 comments
Closed

Yaw during takeoff #13675

julianoes opened this issue Dec 4, 2019 · 7 comments

Comments

@julianoes
Copy link
Contributor

Describe the bug
Sometimes I observe a multicopter doing a strange yaw back and forth right during takeoff.

To Reproduce
Do many takeoff in SITL and every now and then it's visible.

Expected behavior
It should not yaw during takeoff, period.

Log Files and Screenshots
17_39_47-yaw-on-takeoff
14_03_52-yaw-on-takeoff

https://logs.px4.io/plot_app?log=907be591-f04b-4187-8e5a-153435b0bfe1
https://logs.px4.io/plot_app?log=bb0b86a5-a23c-4acd-a88a-fda4a8b6b78c

Drone (please complete the following information):

  • The logs are from a VTOL takeoff without weathervane activated, however, I've also seen the behaviour with iris.
@mwiatt
Copy link
Contributor

mwiatt commented Dec 4, 2019

On takeoff, I have seen a yaw of around 5 - 10 degrees after the copter reaches around 2m in alt. I don't remember similar behavior with 1.9.2. Not sure if this is the same bug.

See this log, around 5:28.65:

https://logs.px4.io/plot_app?log=36040896-dbc3-48d4-baab-ec18c0ed29bd

image

Drone (please complete the following information):

  • Tarot X6 (with Tarot retracts)
  • Pixhawk Cube 2.1
  • Here2 GNSS
  • PX4 1.10.0 rc2
  • QGC daily 12/2/2019 Win10
  • Gremsy S1 Gimbal connected to Telem2 (Mavlink)

@MaEtUgR
Copy link
Member

MaEtUgR commented Dec 4, 2019

I recently also saw a strange twitch in SITL on master when doing takeoff. Just a wild guess because of what changed recently: Might be related to #13430. Someone up to verify until I find the time to do tests myself?

@mwiatt
Copy link
Contributor

mwiatt commented Dec 4, 2019

I was looking back at some of my old flight logs and this is an interesting one from 1.9.2. You can see that the estimated yaw a step change on takeoff but the flight controller does not react to it.

https://logs.px4.io/plot_app?log=c57c04e0-a6bd-4f04-9fe2-eb986cbcc1b4

image

@MaEtUgR
Copy link
Member

MaEtUgR commented Dec 4, 2019

There can be yaw resets from the estimator in case it realizes after takeoff that the global yaw heading estimate was not accurate e.g. because of magnetic interference. That could also be something realted to the issue here but looking at the log plots posted by @julianoes I consider it unlikely.

but the flight controller does not react to it

What would you expect to see as a reaction in terms of this plot? Do you expect the setpoint to switch as well since you're flying in manual and basically don't care about the absolute global heading accuracy and want your vehicle to not correct for it?

@mwiatt
Copy link
Contributor

mwiatt commented Dec 4, 2019

Do you expect the setpoint to switch as well since you're flying in manual

I was flying in Mission mode at the time of the step change in yaw estimate. I wouldn't expect the yaw setpoint to change. I was just pointing out that 1.9.2 and 1.10.0 react differently to the step change. Sorry I wasn't clear.

@MaEtUgR
Copy link
Member

MaEtUgR commented Dec 6, 2019

In the logs posted by @julianoes it's really strange that the yaw setpoint switches to zero even though the task produces no jumps. This means it has to be some logic of the position controller itself which should basically only forward yaw setpoints.
yaw_trajectory

@julianoes
Copy link
Contributor Author

Fixed in #13965.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants