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

HAL_Linux: Implement force_safety_on/off in RCOutput_PCA9685, do force_safety_on before shutting down #18635

Merged
merged 2 commits into from Sep 14, 2021

Conversation

Williangalvani
Copy link
Contributor

This fixes an issue where Linux builds actually quit when receiving a sigterm, but do so in a rush. This leaves the PCA9685 PWMs running, which is far from ideal.

This patch implements force_safety_on() and force_safety_off() for the PCA9685 and makes HAL_Linux use it to stop the PWMs before quitting.

It can also be tested using pymavlink:

# set safety on
master.mav.set_mode_send(1, 128, 1)

# set safety off
master.mav.set_mode_send(1, 128, 0)

@Williangalvani Williangalvani mentioned this pull request Sep 10, 2021
29 tasks
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.

None yet

3 participants