-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: Manual: use apply_throttle_limits
function in manual mode if IDLE_GOV_MANUAL
is enabled.
#26283
Conversation
855831d
to
541c5de
Compare
need CI test that in MANUAL we can go below THR_MIN to allow engine kill |
541c5de
to
de0d71f
Compare
Added a auto test, tested the auto test by hard coding |
servo_min = self.get_parameter("RC3_MIN") | ||
servo_max = self.get_parameter("RC3_MAX") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a get_parameters
, but use is not mandatory :-)
de0d71f
to
f141d39
Compare
drain_mav()
added to autotest after mode/arming changes.
This moves the application of throttle limits to the main
apply_throttle_limits
function that all other modes used here:ardupilot/ArduPlane/servos.cpp
Line 507 in e01e697
This makes manual mode behave the same as any other mode. This does result in a couple of changes in behavior:
THR_MAX
is also applied along withTHR_MIN
.