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

Changed actuator state to be an atomic bool #42

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

bskdany
Copy link
Contributor

@bskdany bskdany commented Nov 17, 2024

  • Changed actuator state to be atomic bool
  • Added back actuator_set function
  • Changed padstate_actuate and padstate_get_actstate to not lock the mutex anymore

@linguini1
Copy link
Contributor

I love members who actively listen at PDRs! Will review tomorrow but thank you for the jump start!

@bskdany bskdany marked this pull request as draft November 21, 2024 05:23
@bskdany bskdany marked this pull request as ready for review November 25, 2024 03:31
@bskdany
Copy link
Contributor Author

bskdany commented Nov 25, 2024

Fixed all actuator state atomics, I forgot how they worked in C so I was just setting values instead of using the helper functions from stdatomic

pad_server/src/state.c Outdated Show resolved Hide resolved
EliasJRH
EliasJRH previously approved these changes Nov 26, 2024
@EliasJRH EliasJRH merged commit 1ae0dcb into main Nov 26, 2024
3 checks passed
@EliasJRH EliasJRH deleted the actuator_state_improvements branch November 26, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants