inav icon indicating copy to clipboard operation
inav copied to clipboard

Waypoints, RTH: make heading change smooth

Open DzikuVx opened this issue 10 years ago • 9 comments

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:

bblog

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".

DzikuVx avatar Apr 10 '16 20:04 DzikuVx

I agree with this. Feels like some jerk limit would be nice here, i don't see a problem with high angular velocity though.

theArchLadder avatar Apr 10 '16 20:04 theArchLadder

@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.

digitalentity avatar Apr 10 '16 23:04 digitalentity

@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

theArchLadder avatar Apr 11 '16 07:04 theArchLadder

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 avatar Apr 11 '16 07:04 oleost

@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 avatar Apr 11 '16 08:04 theArchLadder

@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.

oleost avatar Apr 11 '16 08:04 oleost

@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

DzikuVx avatar Apr 11 '16 08:04 DzikuVx

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.

digitalentity avatar Apr 11 '16 09:04 digitalentity

solved by #195 , closing

DzikuVx avatar May 11 '16 13:05 DzikuVx