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: rework set_servos_controlled function #25371

Merged

Conversation

IamPete1
Copy link
Member

A relatively small rework to pave the way for future clean ups.

  • reworks the flight_stage_determines_max_throttle calculation. Result is the same but method is less confusing.
  • always outputs 0 scaled throttle is !is_armed_and_safety_off(), this prevents a miss match between the scaled value and the output PWM value that can cause slew limits and other functions that use the scaled value to get confused.
  • moves the unrelated set_takeoff_expected functionality to its own function.

@tridge tridge merged commit 7e4b5b0 into ArduPilot:master Oct 31, 2023
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants