-
Notifications
You must be signed in to change notification settings - Fork 17.4k
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: restore thr_min behavior #11059
Conversation
The throttle was originaly constrained so the fix is correct |
It was constrained previously unless throttle_passthru_stabilize is set. |
I've added one more related problem in the original bug report; I think those 3 lines here ardupilot/ArduPlane/servos.cpp Line 423 in 6dd05db
Should be changed as follows;
|
This now also outputs throttle min when disarmed as per ARMING_REQUIRE description. This is abit odd tho so now THR_MIN is respected when disarmed and in all modes except manual. I wonder if we would be better moving THR_MIN over to the ICE library for this use case (ie idling with THR_MIN). It seems that THR_MIN when disarmed may have been broken for some time and it now has the dual purpose of enabling the reverse thrust stuff. |
I think that the parameter description is broken at this point. It would be very dangerous to change this behavior now to make it output throttle_min when disarmed. I can't think of a use case where it would be useful for it to do that, even with an ICE engine. |
@DavidIngraham Yeah I think I agree, thr_min should be for armed only and a new parameter linked to the ignition switch functionality should be set up in the ICE library. |
I think we should either remove the arming require thr_min option and replace it with #11109 in the ICE lib (this also gives added functionality of having engine start and stop on a switch) and/or fix the behavior here but change the default to arming require zero throttle. |
Yes, that is a much more sensible approach and will be much safer
…On Sat, Apr 13, 2019 at 3:43 AM Peter Hall ***@***.***> wrote:
I think we should either remove the arming require thr_min option and
replace it with #11109 <#11109>
in the ICE lib (this also gives added functionality of having engine start
and stop on a switch) and/or fix the behavior here but change the default
to arming require zero throttle.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11059 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACt5Gdci_Zgfr8rB99_Ymvw-7Pl9qp7Nks5vgbTLgaJpZM4cjV_f>
.
|
fix for #11030
This now constrains throttle to between thr_min and thr_max in FBWA/SATABILIZE ect. I couldn't track down how this was done before. Possibly the throttle was interpolated to between thr_min and thr_max? This currently just constrains so some throttle bellow thr_min has no change.