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

Plane: implement RTL_CLIMB_MIN parameter #14371

Merged
merged 1 commit into from
May 18, 2020

Conversation

tridge
Copy link
Contributor

@tridge tridge commented May 15, 2020

this allows for an initial climb on RTL where roll is limited to
LEVEL_ROLL_LIMIT

@tridge tridge added the Plane label May 15, 2020
@tridge tridge requested a review from Hwurzburg May 15, 2020 00:13
@Hwurzburg
Copy link
Collaborator

test flew today....set RTL_CLIMB_MIN to 30.....never appeared to be invoked....here is a log: https://www.dropbox.com/s/lwr7g632diuusdh/RTL_CLIMB_MIN_TEST.bin?dl=0
this was testing with Throttle failsafe, circles then RTLs....so maybe I had to eliiminate the FS_SHORT action? or maybe FS RTLs get initialized differently?

@Redshifft
Copy link

Excellent, thought this got forgotten about !
All that is required is a simple climb first option in RTL, say 0= essentially off to say 10sec.
Default it to 0 and the people that do not understand will not even know it's there.
The Failsafe does not even need to be considered as the fix is for RTL which currently will crash the Aircraft if you engage it or FS calls it at very low level because current action is instant Hard turn to home before gaining any height.
Thanks Tridge

@Redshifft
Copy link

I would also say any reference to Altitude would cripple its effectiveness as even flat looking fields could have 20 mtr height change - Has to be a timed wings level climb and which will get you out of any situation that a half sensible pilot could have a Failsafe in.

this allows for an initial climb on RTL where roll is limited to
LEVEL_ROLL_LIMIT
@tridge
Copy link
Contributor Author

tridge commented May 16, 2020

never appeared to be invoked....here is a log:

thanks, I've fixed it. It only worked on the first RTL, which you did on the ground. I had forgotten to reset the flag on each new RTL

@tridge
Copy link
Contributor Author

tridge commented May 16, 2020

I would also say any reference to Altitude would cripple its effectiveness as even flat looking fields could have 20 mtr height change

ok, so why does this mean it has to be a time? Just set RTL_CLIMB_MIN=20 and it will guarantee to climb 20m from whatever alt you are at when you enter RTL before it turns.

@Hwurzburg
Copy link
Collaborator

@tridge Thanks...will test fly again Sunday...rain tomorrow....I think the way its currently defined is optimum myself in terms of complexity vs solving the tree surfing/canyon diving issues...

@Redshifft
Copy link

I would also say any reference to Altitude would cripple its effectiveness as even flat looking fields could have 20 mtr height change

ok, so why does this mean it has to be a time? Just set RTL_CLIMB_MIN=20 and it will guarantee to climb 20m from whatever alt you are at when you enter RTL before it turns.

Provided it max climbs from current Altitude it will make no difference if that is Timed or measured :)
Whatever is easier for you to implement.

I saw "RTL_CLIMB_MIN to 30" and assumed that meant 30mtr ALT, if it had said RTL_CLIMB_MIN to +30 I would have understood what was happening.

@RMFPV
Copy link

RMFPV commented May 16, 2020

ha-ha
#11180

there was mine too

thx a lot!

still would be nice to allow at least 10sec forward flight before start turning

@tridge
Copy link
Contributor Author

tridge commented May 16, 2020

there was mine too

yep, this will allow us to close a few issues :-)

@Hwurzburg
Copy link
Collaborator

test flew today...working now ....I dont have the terrain to try it with terrain following....I am going to ask if someone on RCG would like to try it and I will send him code for his FC based on Stable+this PR....but I dont see why this cant be merged now

@tridge
Copy link
Contributor Author

tridge commented May 18, 2020

thanks for testing Henry!

@tridge tridge merged commit 8b21f51 into ArduPilot:master May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Plane 4.0 Backports
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

4 participants