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

SRV_Channels: find_channel: use channel mask remove need for search over all channels #27849

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Aug 15, 2024

This should speed up the find channel call so its less painful at higher rates. #27843

I have not tested this, or had a in depth look to see if its a good idea.

I think this is OK, there will be slightly more lag when a function is changed, we should not be changing functions at runtime so I think its OK.

@IamPete1 IamPete1 added the WIP label Aug 15, 2024
@IamPete1 IamPete1 requested a review from andyp1per August 15, 2024 14:03
Comment on lines +569 to +571
if (!initialised) {
update_aux_servo_function();
}
Copy link
Member Author

Choose a reason for hiding this comment

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

We do this in several places, we really should not have too.... We could remove it and put in a SITL only panic.

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.

Nice work Pete! I flew this successfully

@andyp1per andyp1per marked this pull request as ready for review August 15, 2024 17:18
@andyp1per andyp1per added Enhancement and removed WIP labels Aug 15, 2024
@IamPete1 IamPete1 force-pushed the servo_find_channel branch from 48690dc to e9f2515 Compare August 16, 2024 19:34
@IamPete1
Copy link
Member Author

Fixed a typo in a comment.

@tridge tridge merged commit 4ab9761 into ArduPilot:master Aug 19, 2024
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants