Skip to content

Comments

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

Open
saidinesh5 wants to merge 1 commit intomathiasvr:mainfrom
saidinesh5:startup_tunes_synchronize_wait
Open

feat: Implement a wait after startup_beep_done to sync multiple ESCs#22
saidinesh5 wants to merge 1 commit intomathiasvr:mainfrom
saidinesh5:startup_tunes_synchronize_wait

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