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

Do not allow users to set throttle-based notch in Heli #28843

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MattKear
Copy link
Contributor

@MattKear MattKear commented Dec 11, 2024

My attempt at fixing issue: #28841

Throttle is not "Throttle" in AP_MotorsHeli, it is actually collective position. Therefore, throttle-based tracking does not make any sense for Heli.

This is a subtly that most users will not appreciate, therefore we should help users to not make this mistake by throwing a config error if selected.

Have also changed the default notch mode for heli.

Tested in SITL only. This is how it presents to the user upon miss-configuration:

image

Copy link
Collaborator

@andyp1per andyp1per left a comment

Choose a reason for hiding this comment

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

LGTM, just would like to see the types called out explicitly

// We cannot use throttle based notch on helis
#define NOTCHFILTER_DEFAULT_MODE 0 // fixed
#else
#define NOTCHFILTER_DEFAULT_MODE 1 // throttle based
Copy link
Collaborator

Choose a reason for hiding this comment

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

Think this should be int8_t(HarmonicNotchDynamicMode::UpdateThrottle) etc

Copy link
Member

Choose a reason for hiding this comment

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

All defaults are floats.

@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Dec 13, 2024
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.

4 participants