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

feat: Implement a wait after startup_beep_done to sync multiple ESCs #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saidinesh5
Copy link
Contributor

As we allow each ESCs on a craft to have their own startup tune, each of
them may finish playing at a different time.
Hence we implpement a 16 bit configurable wait after playing startup
tune. This should allow us to wait up to 65536 ms.

The Eeprom variables to configure these wait times are:

Eep_Pgm_Tune_Wait_MSB_ms - most significant byte
Eep_Pgm_Tune_Wait_LSB_ms - least significant byte

Total wait = Eep_Pgm_Tune_Wait_MSB_ms*255 + Eep_Pgm_Tune_Wait_LSB_ms

TODO: Make sure these values are set to 0 by default

As we allow each ESCs on a craft to have their own startup tune, each of
them may finish playing at a different time.
Hence we implpement a 16 bit configurable wait after playing startup
tune. This should allow us to wait up to 65536 ms.

The Eeprom variables to configure these wait times are:

Eep_Pgm_Tune_Wait_MSB_ms - most significant byte
Eep_Pgm_Tune_Wait_LSB_ms - least significant byte

Total wait = Eep_Pgm_Tune_Wait_MSB_ms*255 + Eep_Pgm_Tune_Wait_LSB_ms

TODO: Make sure these values are set to 0 by default
@Quick-Flash
Copy link

Any reason why this isn't ready to be merged? Wouldn't this help fix #19 ?

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.

2 participants