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_RangeFinder: fix Lua timeout #26829

Merged
merged 1 commit into from
May 13, 2024

Conversation

clydemcqueen
Copy link
Contributor

This change moves the timeout test from AP_RangeFinder_Lua::handle_script_msg back to AP_RangeFinder_Lua::update. This should revert the behavior to what folks are seeing in Copter 4.4, prior to 2cc63f5.

The timeout is still set to 500ms.

Copy link
Contributor

@rishabsingh3003 rishabsingh3003 left a comment

Choose a reason for hiding this comment

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

Hi,
Thank you so much for this. The changes look correct to me. The driver seems to have been broken by: #25641

I am currently travelling so don't have access to my rangefinders. I'll be back in a couple of days, and will test a few rangefinder drivers that we have that make use of the lua backend to ensure everything is working.

@rishabsingh3003
Copy link
Contributor

I have tested this branch with my TOFSENSE -M serial driver for which we already have a Lua driver. It works as expected.

I also confirmed it is not working on Master.

@rishabsingh3003
Copy link
Contributor

@rmackay9 can we get this merged?

@tridge tridge merged commit b853fe3 into ArduPilot:master May 13, 2024
91 checks passed
@clydemcqueen clydemcqueen deleted the pr-rf-lua-timeout branch May 14, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 4.5.3-beta1
Development

Successfully merging this pull request may close these issues.

5 participants