Waypoints, RTH: make heading change smooth
Currently, when switching to next waypoint or changing heading during RTH before descend, yaw input is very rapid. Specially when multirotor tries to make 180 degrees turn. It looks more less like this:

In case of underpowered machines with low yaw authority it leads to roll/pitch disturbance. It would be nice to have this yaw transition "smooth".
I agree with this. Feels like some jerk limit would be nice here, i don't see a problem with high angular velocity though.
@DzikuVx, @theArchLadder I'm going to refactor the way MAG controller works and make it part of FP-PID controller (similar to heading lock mode). It will have some filtering built in to reduce jerk.
@DzikuVx posted a nice video of WP mission today. There seems to be no yaw movement before switching to the next waypoint, like "reached the waypoint, oh crap i need to turn!" How about starting to yaw towards the next waypoint when the multirotor starts slowing down for the current waypoint...? So when switching waypoint, the yaw maneuver should be halfway done. https://www.youtube.com/watch?v=p4ggWjN4GSM
Looks like okey behavior if you ask me?
If you want a smoother turning can you just use more waypoints? 11. apr. 2016 09.23 skrev "theArchLadder" [email protected]:
@DzikuVx https://github.com/DzikuVx posted a nice video of WP mission today. There seems to be no yaw movement before switching to the next waypoint, like "reached the waypoint, oh crap i need to turn!" How about starting to yaw towards the next waypoint when the multirotor starts slowing down for the current waypoint...? So when switching waypoint, the yaw maneuver should be halfway done. https://www.youtube.com/watch?v=p4ggWjN4GSM
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/iNavFlight/inav/issues/156#issuecomment-208197936
@oleost not sure what the point of your comment is, 3 people here seems to think yaw behavior has room for improvement, are you against changing yaw behavior in the way we have talked about here?
I don't really want smoother turning, i want my quad to travel straight to the waypoint, then travel straight to the next waypoint. This issue is not about changing the direction of travel, it's only about changing the heading (what direction the quad is pointing, but not necessarily moving).
@theArchLadder I just said it looked good on the video you posted. And are very comparable to other waypoints mission I seen on youtube with different flightcontroller. But then again, thats gimbal smoothed out, so in reality in may be worse than that video.
@theArchLadder @oleost Well, I'm author of that video. Yes, gimbal smoothed it, but quad was jerking every turn. It does not have enough power to do rapid yaw changes. Look at traces on BBlog screenshot I posted. A lot was happening during that course change
We can't yaw in advance. The position controller logic is very simple - it only knows about target position, it has no idea that there are more waypoints coming. I'll smooth out heading controller at the PID level - we'll have smooth yaw rotation during WP missions then.
solved by #195 , closing