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

Fix heli ice/turbine cooldown and add autotest #28310

Merged

Conversation

MattKear
Copy link
Contributor

@MattKear MattKear commented Oct 4, 2024

This PR fixes the ice/turbine cool down feature in Heli RSC.

This also adds an autotest to prevent future regression.

@MattKear MattKear requested a review from bnsgeyer October 4, 2024 21:41
@MattKear MattKear force-pushed the pr_heli_add_turbine_cooldown_test branch from dea3f25 to d197221 Compare October 5, 2024 12:24
@MattKear
Copy link
Contributor Author

MattKear commented Oct 5, 2024

Auto test results before the fix:
image
Auto test fails in this case so will catch a regression in this feature.

Auto test results after the fix:
image
Auto test passes with the fix applied.

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

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

I don't think this will flap, despite the races.

Comment on lines +708 to +712
self.set_parameter("RC6_OPTION", 161)
self.set_parameter("H_RSC_RAMP_TIME", RAMP_TIME)
self.set_parameter("H_RSC_SETPOINT", SETPOINT)
self.set_parameter("H_RSC_IDLE", IDLE)
self.set_parameter("H_RSC_CLDWN_TIME", COOLDOWN_TIME)
Copy link
Contributor

Choose a reason for hiding this comment

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

set_parameters can be faster.

Comment on lines +720 to +721
self.set_rc(6, 2000)
self.wait_statustext('Turbine startup')
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a race condition here, should collect statustext in the context and check_context=True

@peterbarker peterbarker merged commit e30b4bf into ArduPilot:master Oct 6, 2024
98 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.

3 participants