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

AP_Motors: Heli: RotorControlState to enum class and helper to remove duplication #25767

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

IamPete1
Copy link
Member

The recent tail clean up means we can remove the spool state to rotor control state conversion that is done for each heli type. This adds a new helper function so we only have to do it in one place. It also moves RotorControlState inside AP_MotorsHeli_RSC and converts to a enum class.

Should be no functional change.

Copy link
Contributor

@MattKear MattKear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a simple enough change that it can be proved fit for purpose based on inspection of the code.

LGTM.

Copy link
Contributor

@bnsgeyer bnsgeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tridge tridge merged commit 1bcf69e into ArduPilot:master Dec 18, 2023
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.

6 participants