inav icon indicating copy to clipboard operation
inav copied to clipboard

RTH: Replace pre-landing-delay with wait-for-correct-heading

Open theArchLadder opened this issue 10 years ago • 4 comments

Right now there is a 5 second delay from when the copter reaches home position to the descent starts. Some delay is needed so the copter has time to yaw and get the right heading before starting to descend.

I use a mag_hold_rate_limit of 180dps, i want rapid heading change, it just looks and feels right on my racing quad. On the other hand, @DzikuVx was happy with using 25dps on a big and fancy quad to make yaw smooth and gentle.

For my quad turning around should take just 1 second, so a 5 second delay feels annoyingly long for me, but is to short for @DzikuVx quad that takes over 7 seconds, this makes it tricky to set a good default pre-landing-delay value, and having to tune yet another setting sucks.

So my idea is to just waiting until the heading error is less than 5 degrees or something like that before starting to descend. This would make it work with both high and low mag_hold_rate_limit values without any tuning required. And if the quad comes in with the correct heading we don't need as long delay. We could have a minimum delay of like 1 second if needed.

Thoughts?

theArchLadder avatar May 24 '16 11:05 theArchLadder

Good idea. I'll add this change and also ensure we have a minimum delay to settle down before starting descent.

digitalentity avatar May 24 '16 14:05 digitalentity

As a matter of fact, I have nothing against descend while still changing heading.

DzikuVx avatar May 26 '16 17:05 DzikuVx

@DzikuVx I have tried both, changing heading while descending saves some time, but i think it sort of looks nice to settle in and change heading before descending... I can't make up my mind. Maybe we should have an option for this?

theArchLadder avatar May 26 '16 18:05 theArchLadder

@theArchLadder this can be easily made configurable with CLI variables

DzikuVx avatar May 26 '16 19:05 DzikuVx