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: Synchronize Individual ESCs after playing back startup tune #19

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

Conversation

saidinesh5
Copy link

Since we allow each ESC to set it's own startup tune, we can now
automatically configure each of them to wait until all the others have
finished playing their tune.

The support for this is implemented using the new Eeprom variables in
Bluejay:

Eep_Pgm_Tune_Wait_MSB_ms - most significant byte
Eep_Pgm_Tune_Wait_LSB_ms - least significant byte

This should allow us to wait for 65536ms now.

This should typically be enough for most usecases imo. If not, we can
add another byte later on.

Requires: mathiasvr/bluejay#22

@@ -77,6 +77,8 @@ var BLHELI_LAYOUT = {
NAME: { offset: 0x60, size: 16 },

STARTUP_MELODY: { offset: 0x70, size: 128 }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing comma is missing here.

@saidinesh5 saidinesh5 force-pushed the startup_tunes_synchronize_wait branch from 3497e25 to b9ff32d Compare April 14, 2021 20:07
Since we allow each ESC to set it's own startup tune, we can now
automatically configure each of them to wait until all the others have
finished playing their tune.

The support for this is implemented using the new Eeprom variables in
Bluejay:

Eep_Pgm_Tune_Wait_MSB_ms - most significant byte
Eep_Pgm_Tune_Wait_LSB_ms - least significant byte

This should allow us to wait for 65536ms now.

This should typically be enough for most usecases imo. If not, we can
add another byte later on.
@saidinesh5 saidinesh5 force-pushed the startup_tunes_synchronize_wait branch from b9ff32d to be60112 Compare April 14, 2021 20:17
@saidinesh5 saidinesh5 changed the title feat: Synchronize Individual after playing back startup tune feat: Synchronize Individual ESCs after playing back startup tune Apr 15, 2021
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