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

2025 RPi state machine and player control #252

Merged
merged 121 commits into from
Feb 19, 2025

Conversation

chousallen
Copy link
Contributor

@chousallen chousallen commented Feb 5, 2025

What is this PR for?

Update state machine and player control

What type of PR is it?

Improvement

Modification

state machine

  1. Extract the actions from the state machine
  2. Adjustable delay duration
  3. Pause and resume functions

player control

The command to player flag processed. Use "-ss " "-to " "-d " to specify the start time, stop time, and the duration of delay as well as the duration of delay display.

scripts

Add the new_rpi script for setting up a new rpi.

chousallen and others added 30 commits January 12, 2025 23:59
Revert "compress failed"

This reverts commit 9cf1ed6.
Revert "compress getCurrentState log"

This reverts commit 3cca088.
some problems faced:
1. commands: "play 1 2"  plays 1 sec to 2 sec but not 1 ms to 2 ms
2. commands: "play -s 1 2" seems to result playing 1000 sec to 2000 sec
3. commands: "play -d 1000" delay the play 1000 ms
4. play with delay will first light red for a while, and then play after
   the delay time. the time interval of the red seems to be proportional
to the delay time. practically, "play -d 10000" results to about 2 sec
of red and "play -d 5000" results to 1 sec.

expect some improvement:
1. use "play -ss 1 -to 2" but not "play 1 2"
@murphy-cthsu
Copy link
Contributor

LGTM. But it would be better if you move the new_rpi.sh into scripts/.

@murphy-cthsu murphy-cthsu merged commit 9b87579 into NTUEELightDance:main Feb 19, 2025
1 check passed
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