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

Buzzer Non-Blocking #29

Open
jia-xie opened this issue Apr 5, 2024 · 2 comments
Open

Buzzer Non-Blocking #29

jia-xie opened this issue Apr 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jia-xie
Copy link
Member

jia-xie commented Apr 5, 2024

No description provided.

@jia-xie jia-xie added the enhancement New feature or request label Apr 5, 2024
@jia-xie jia-xie self-assigned this Apr 5, 2024
@jia-xie
Copy link
Member Author

jia-xie commented Apr 5, 2024

5fe0a2a

@jia-xie
Copy link
Member Author

jia-xie commented Apr 5, 2024

Need non-blocking buzzer

  • Possible Solution:
    Initialize a counter in freertos task and compare the counter with melody notes duration.

Be careful with:
Counter overflow, only start to accumulate when system detect play request. Might need a flag in buzzer instance

@jia-xie jia-xie changed the title buzzer Buzzer Apr 5, 2024
@jia-xie jia-xie changed the title Buzzer Buzzer Non-Blocking Apr 5, 2024
@jia-xie jia-xie changed the title Buzzer Non-Blocking Buzzer Non-Blocking [more info](https://github.com/RoboMaster-Club/control-base/issues/29#issuecomment-2040324756) Apr 5, 2024
@jia-xie jia-xie changed the title Buzzer Non-Blocking [more info](https://github.com/RoboMaster-Club/control-base/issues/29#issuecomment-2040324756) Buzzer Non-Blocking Apr 5, 2024
@jia-xie jia-xie added the good first issue Good for newcomers label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant